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:
Daniel Siepmann 2021-02-15 16:05:46 +01:00
parent dc5a4546f3
commit ce787c90b6
6 changed files with 8 additions and 8 deletions

View file

@ -30,7 +30,7 @@ class Organisation implements Converter
public function convert(array $jsonIdOfEntity): GenericEntity
{
return new GenericEntity(
95,
10,
'tx_thuecat_organisation',
$jsonIdOfEntity['@id'],
[

View file

@ -46,7 +46,7 @@ class TouristInformation implements Converter
$town = $this->townRepository->findOneByRemoteIds($this->getContainedInPlaceIds($jsonIdOfEntity));
return new GenericEntity(
95,
10,
'tx_thuecat_tourist_information',
$jsonIdOfEntity['@id'],
[

View file

@ -40,7 +40,7 @@ class Town implements Converter
{
$manager = $this->organisationRepository->findOneByRemoteId($jsonIdOfEntity['thuecat:managedBy']['@id']);
return new GenericEntity(
95,
10,
'tx_thuecat_town',
$jsonIdOfEntity['@id'],
[

View file

@ -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('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
self::assertSame([

View file

@ -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('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
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('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
self::assertSame([

View file

@ -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('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
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('https://example.com/resources/018132452787-ngbe', $entity->getRemoteId());
self::assertSame([