mirror of
https://github.com/werkraum-media/thuecat.git
synced 2024-09-28 19:26:11 +02:00
Use storage pids from example setup
As long as those are hard coded, use matching storage pids from example setup.
This commit is contained in:
parent
dc5a4546f3
commit
ce787c90b6
6 changed files with 8 additions and 8 deletions
|
@ -30,7 +30,7 @@ class Organisation implements Converter
|
||||||
public function convert(array $jsonIdOfEntity): GenericEntity
|
public function convert(array $jsonIdOfEntity): GenericEntity
|
||||||
{
|
{
|
||||||
return new GenericEntity(
|
return new GenericEntity(
|
||||||
95,
|
10,
|
||||||
'tx_thuecat_organisation',
|
'tx_thuecat_organisation',
|
||||||
$jsonIdOfEntity['@id'],
|
$jsonIdOfEntity['@id'],
|
||||||
[
|
[
|
||||||
|
|
|
@ -46,7 +46,7 @@ class TouristInformation implements Converter
|
||||||
$town = $this->townRepository->findOneByRemoteIds($this->getContainedInPlaceIds($jsonIdOfEntity));
|
$town = $this->townRepository->findOneByRemoteIds($this->getContainedInPlaceIds($jsonIdOfEntity));
|
||||||
|
|
||||||
return new GenericEntity(
|
return new GenericEntity(
|
||||||
95,
|
10,
|
||||||
'tx_thuecat_tourist_information',
|
'tx_thuecat_tourist_information',
|
||||||
$jsonIdOfEntity['@id'],
|
$jsonIdOfEntity['@id'],
|
||||||
[
|
[
|
||||||
|
|
|
@ -40,7 +40,7 @@ class Town implements Converter
|
||||||
{
|
{
|
||||||
$manager = $this->organisationRepository->findOneByRemoteId($jsonIdOfEntity['thuecat:managedBy']['@id']);
|
$manager = $this->organisationRepository->findOneByRemoteId($jsonIdOfEntity['thuecat:managedBy']['@id']);
|
||||||
return new GenericEntity(
|
return new GenericEntity(
|
||||||
95,
|
10,
|
||||||
'tx_thuecat_town',
|
'tx_thuecat_town',
|
||||||
$jsonIdOfEntity['@id'],
|
$jsonIdOfEntity['@id'],
|
||||||
[
|
[
|
||||||
|
|
|
@ -80,7 +80,7 @@ class OrganisationTest extends TestCase
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
self::assertSame(95, $entity->getTypo3StoragePid());
|
self::assertSame(10, $entity->getTypo3StoragePid());
|
||||||
self::assertSame('tx_thuecat_organisation', $entity->getTypo3DatabaseTableName());
|
self::assertSame('tx_thuecat_organisation', $entity->getTypo3DatabaseTableName());
|
||||||
self::assertSame('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
|
self::assertSame('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
|
||||||
self::assertSame([
|
self::assertSame([
|
||||||
|
|
|
@ -129,7 +129,7 @@ class TouristInformationTest extends TestCase
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
self::assertSame(95, $entity->getTypo3StoragePid());
|
self::assertSame(10, $entity->getTypo3StoragePid());
|
||||||
self::assertSame('tx_thuecat_tourist_information', $entity->getTypo3DatabaseTableName());
|
self::assertSame('tx_thuecat_tourist_information', $entity->getTypo3DatabaseTableName());
|
||||||
self::assertSame('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
|
self::assertSame('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
|
||||||
self::assertSame([
|
self::assertSame([
|
||||||
|
@ -186,7 +186,7 @@ class TouristInformationTest extends TestCase
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
self::assertSame(95, $entity->getTypo3StoragePid());
|
self::assertSame(10, $entity->getTypo3StoragePid());
|
||||||
self::assertSame('tx_thuecat_tourist_information', $entity->getTypo3DatabaseTableName());
|
self::assertSame('tx_thuecat_tourist_information', $entity->getTypo3DatabaseTableName());
|
||||||
self::assertSame('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
|
self::assertSame('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
|
||||||
self::assertSame([
|
self::assertSame([
|
||||||
|
|
|
@ -95,7 +95,7 @@ class TownTest extends TestCase
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
self::assertSame(95, $entity->getTypo3StoragePid());
|
self::assertSame(10, $entity->getTypo3StoragePid());
|
||||||
self::assertSame('tx_thuecat_town', $entity->getTypo3DatabaseTableName());
|
self::assertSame('tx_thuecat_town', $entity->getTypo3DatabaseTableName());
|
||||||
self::assertSame('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
|
self::assertSame('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
|
||||||
self::assertSame([
|
self::assertSame([
|
||||||
|
@ -129,7 +129,7 @@ class TownTest extends TestCase
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
self::assertSame(95, $entity->getTypo3StoragePid());
|
self::assertSame(10, $entity->getTypo3StoragePid());
|
||||||
self::assertSame('tx_thuecat_town', $entity->getTypo3DatabaseTableName());
|
self::assertSame('tx_thuecat_town', $entity->getTypo3DatabaseTableName());
|
||||||
self::assertSame('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
|
self::assertSame('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
|
||||||
self::assertSame([
|
self::assertSame([
|
||||||
|
|
Loading…
Reference in a new issue