-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
437 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
2.2.0 | ||
===== | ||
|
||
Breaking | ||
-------- | ||
|
||
Nothing | ||
|
||
Features | ||
-------- | ||
|
||
* Add support for multiple slogans (array within slogan). | ||
The existing API will return the first slogan. | ||
A new method `getSlogans` is added which will return the array of slogans. | ||
|
||
Fixes | ||
----- | ||
|
||
Nothing | ||
|
||
Tasks | ||
----- | ||
|
||
Nothing | ||
|
||
Deprecation | ||
----------- | ||
|
||
Nothing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Tests/Functional/Assertions/Import/ImportsTouristAttractionWithSingleSlogan.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
'tx_thuecat_tourist_attraction' => [ | ||
0 => [ | ||
'uid' => '1', | ||
'pid' => '10', | ||
'sys_language_uid' => '0', | ||
'l18n_parent' => '0', | ||
'l10n_source' => '0', | ||
'remote_id' => 'https://thuecat.org/resources/attraction-with-single-slogan', | ||
'title' => 'Attraktion mit single slogan', | ||
'slogan' => 'InsiderTip', | ||
], | ||
1 => [ | ||
'uid' => '2', | ||
'pid' => '10', | ||
'sys_language_uid' => '1', | ||
'l18n_parent' => '1', | ||
'l10n_source' => '1', | ||
'remote_id' => 'https://thuecat.org/resources/attraction-with-single-slogan', | ||
'title' => 'Attraction with single slogan', | ||
'slogan' => 'InsiderTip', | ||
], | ||
], | ||
]; |
28 changes: 28 additions & 0 deletions
28
Tests/Functional/Assertions/Import/ImportsTouristAttractionWithSloganArray.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
'tx_thuecat_tourist_attraction' => [ | ||
0 => [ | ||
'uid' => '1', | ||
'pid' => '10', | ||
'sys_language_uid' => '0', | ||
'l18n_parent' => '0', | ||
'l10n_source' => '0', | ||
'remote_id' => 'https://thuecat.org/resources/attraction-with-slogan-array', | ||
'title' => 'Attraktion mit slogan array', | ||
'slogan' => 'Highlight,InsiderTip,Unique', | ||
], | ||
1 => [ | ||
'uid' => '2', | ||
'pid' => '10', | ||
'sys_language_uid' => '1', | ||
'l18n_parent' => '1', | ||
'l10n_source' => '1', | ||
'remote_id' => 'https://thuecat.org/resources/attraction-with-slogan-array', | ||
'title' => 'Attraction with slogan array', | ||
'slogan' => 'Highlight,InsiderTip,Unique', | ||
], | ||
], | ||
]; |
55 changes: 55 additions & 0 deletions
55
...unctional/Fixtures/Import/Guzzle/thuecat.org/resources/attraction-with-single-slogan.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"@context": { | ||
"cdb": "https://thuecat.org/ontology/cdb/1.0/", | ||
"dachkg": "https://thuecat.org/ontology/dachkg/1.0/", | ||
"dbo": "http://dbpedia.org/ontology/", | ||
"dsv": "http://ontologies.sti-innsbruck.at/dsv/", | ||
"foaf": "http://xmlns.com/foaf/0.1/", | ||
"owl": "http://www.w3.org/2002/07/owl#", | ||
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
"schema": "http://schema.org/", | ||
"sh": "http://www.w3.org/ns/shacl#", | ||
"thuecat": "https://thuecat.org/ontology/thuecat/1.0/", | ||
"ttgds": "https://thuecat.org/ontology/ttgds/1.0/", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#" | ||
}, | ||
"@graph": [ | ||
{ | ||
"@id": "https://thuecat.org/resources/attraction-with-single-slogan", | ||
"@type": [ | ||
"schema:Place", | ||
"schema:Thing", | ||
"schema:TouristAttraction", | ||
"ttgds:PointOfInterest" | ||
], | ||
"schema:availableLanguage": [ | ||
{ | ||
"@type": "thuecat:Language", | ||
"@value": "thuecat:German" | ||
}, | ||
{ | ||
"@type": "thuecat:Language", | ||
"@value": "thuecat:English" | ||
} | ||
], | ||
"schema:name": [ | ||
{ | ||
"@language": "de", | ||
"@value": "Attraktion mit single slogan" | ||
}, | ||
{ | ||
"@language": "en", | ||
"@value": "Attraction with single slogan" | ||
} | ||
], | ||
"schema:slogan": { | ||
"@type": "thuecat:ThuSlogan", | ||
"@value": "thuecat:InsiderTip" | ||
}, | ||
"thuecat:contentResponsible": { | ||
"@id": "https://thuecat.org/resources/018132452787-ngbe" | ||
} | ||
} | ||
] | ||
} |
65 changes: 65 additions & 0 deletions
65
...Functional/Fixtures/Import/Guzzle/thuecat.org/resources/attraction-with-slogan-array.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"@context": { | ||
"cdb": "https://thuecat.org/ontology/cdb/1.0/", | ||
"dachkg": "https://thuecat.org/ontology/dachkg/1.0/", | ||
"dbo": "http://dbpedia.org/ontology/", | ||
"dsv": "http://ontologies.sti-innsbruck.at/dsv/", | ||
"foaf": "http://xmlns.com/foaf/0.1/", | ||
"owl": "http://www.w3.org/2002/07/owl#", | ||
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
"schema": "http://schema.org/", | ||
"sh": "http://www.w3.org/ns/shacl#", | ||
"thuecat": "https://thuecat.org/ontology/thuecat/1.0/", | ||
"ttgds": "https://thuecat.org/ontology/ttgds/1.0/", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#" | ||
}, | ||
"@graph": [ | ||
{ | ||
"@id": "https://thuecat.org/resources/attraction-with-slogan-array", | ||
"@type": [ | ||
"schema:Place", | ||
"schema:Thing", | ||
"schema:TouristAttraction", | ||
"ttgds:PointOfInterest" | ||
], | ||
"schema:availableLanguage": [ | ||
{ | ||
"@type": "thuecat:Language", | ||
"@value": "thuecat:German" | ||
}, | ||
{ | ||
"@type": "thuecat:Language", | ||
"@value": "thuecat:English" | ||
} | ||
], | ||
"schema:name": [ | ||
{ | ||
"@language": "de", | ||
"@value": "Attraktion mit slogan array" | ||
}, | ||
{ | ||
"@language": "en", | ||
"@value": "Attraction with slogan array" | ||
} | ||
], | ||
"schema:slogan": [ | ||
{ | ||
"@type": "thuecat:ThuSlogan", | ||
"@value": "thuecat:Highlight" | ||
}, | ||
{ | ||
"@type": "thuecat:ThuSlogan", | ||
"@value": "thuecat:InsiderTip" | ||
}, | ||
{ | ||
"@type": "thuecat:ThuSlogan", | ||
"@value": "thuecat:Unique" | ||
} | ||
], | ||
"thuecat:contentResponsible": { | ||
"@id": "https://thuecat.org/resources/018132452787-ngbe" | ||
} | ||
} | ||
] | ||
} |
65 changes: 65 additions & 0 deletions
65
Tests/Functional/Fixtures/Import/ImportsTouristAttractionWithSingleSlogan.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use TYPO3\CMS\Core\Domain\Repository\PageRepository; | ||
|
||
return [ | ||
'pages' => [ | ||
0 => [ | ||
'uid' => '1', | ||
'pid' => '0', | ||
'tstamp' => '1613400587', | ||
'crdate' => '1613400558', | ||
'doktype' => PageRepository::DOKTYPE_DEFAULT, | ||
'title' => 'Rootpage', | ||
'is_siteroot' => '1', | ||
], | ||
1 => [ | ||
'uid' => '10', | ||
'pid' => '1', | ||
'tstamp' => '1613400587', | ||
'crdate' => '1613400558', | ||
'doktype' => PageRepository::DOKTYPE_SYSFOLDER, | ||
'title' => 'Storage folder', | ||
], | ||
], | ||
'tx_thuecat_import_configuration' => [ | ||
0 => [ | ||
'uid' => '1', | ||
'pid' => '0', | ||
'tstamp' => '1613400587', | ||
'crdate' => '1613400558', | ||
'disable' => '0', | ||
'title' => 'Tourist Attraction', | ||
'type' => 'static', | ||
'configuration' => '<?xml version="1.0" encoding="utf-8" standalone="yes" ?> | ||
<T3FlexForms> | ||
<data> | ||
<sheet index="sDEF"> | ||
<language index="lDEF"> | ||
<field index="storagePid"> | ||
<value index="vDEF">10</value> | ||
</field> | ||
<field index="urls"> | ||
<el index="el"> | ||
<field index="602a89f54d694654233086"> | ||
<value index="url"> | ||
<el> | ||
<field index="url"> | ||
<value index="vDEF">https://thuecat.org/resources/attraction-with-single-slogan</value> | ||
</field> | ||
</el> | ||
</value> | ||
<value index="_TOGGLE">0</value> | ||
</field> | ||
</el> | ||
</field> | ||
</language> | ||
</sheet> | ||
</data> | ||
</T3FlexForms> | ||
', | ||
], | ||
], | ||
]; |
Oops, something went wrong.