diff --git a/src/Controller/GlobalDataController.php b/src/Controller/GlobalDataController.php index f62c9f9..8779dd6 100755 --- a/src/Controller/GlobalDataController.php +++ b/src/Controller/GlobalDataController.php @@ -32,7 +32,7 @@ public function pull(QueryFilter $queryFilter) : array // Languages $globalData->addLanguage( (new Language())->setId(new Identity('4faa508a23e3427889bfae0561d7915d')) - ->setLanguageISO('ger') + ->setLanguageIso('ger') ->setIsDefault(true) ->setNameGerman('Deutsch') ->setNameEnglish('German') @@ -40,7 +40,7 @@ public function pull(QueryFilter $queryFilter) : array $globalData->addLanguage( (new Language())->setId(new Identity('8acb0d79a1bc407e9194cc5d8359aaec')) - ->setLanguageISO('eng') + ->setLanguageIso('eng') ->setIsDefault(false) ->setNameGerman('Englisch') ->setNameEnglish('English') @@ -64,14 +64,14 @@ public function pull(QueryFilter $queryFilter) : array (new CustomerGroup())->setId(new Identity('c2c6154f05b342d4b2da85e51ec805c9')) ->setIsDefault(true) ->setApplyNetPrice(false) - ->addI18n((new CustomerGroupI18n())->setName('Endkunde')) + ->addI18n((new CustomerGroupI18n())->setName('Endkunde')->setLanguageIso('ger')) ); $globalData->addCustomerGroup( (new CustomerGroup())->setId(new Identity('b1d7b4cbe4d846f0b323a9d840800177')) ->setIsDefault(false) ->setApplyNetPrice(true) - ->addI18n((new CustomerGroupI18n())->setName('Haendler')) + ->addI18n((new CustomerGroupI18n())->setName('Haendler')->setLanguageIso('ger')) ); // TaxRates diff --git a/tests/src/Controller/GlobalDataControllerTest.php b/tests/src/Controller/GlobalDataControllerTest.php index 4eee264..bce2a79 100644 --- a/tests/src/Controller/GlobalDataControllerTest.php +++ b/tests/src/Controller/GlobalDataControllerTest.php @@ -40,13 +40,13 @@ public function testPullReturnStaticValues() $this->assertCount(2, $result->getLanguages()); $this->assertEquals((new Language()) ->setId(new Identity('4faa508a23e3427889bfae0561d7915d')) - ->setLanguageISO('ger') + ->setLanguageIso('ger') ->setIsDefault(true) ->setNameGerman('Deutsch') ->setNameEnglish('German'), $result->getLanguages()[0]); $this->assertEquals((new Language()) ->setId(new Identity('8acb0d79a1bc407e9194cc5d8359aaec')) - ->setLanguageISO('eng') + ->setLanguageIso('eng') ->setIsDefault(false) ->setNameGerman('Englisch') ->setNameEnglish('English'), $result->getLanguages()[1]); @@ -72,14 +72,14 @@ public function testPullReturnStaticValues() (new CustomerGroup())->setId(new Identity('c2c6154f05b342d4b2da85e51ec805c9')) ->setIsDefault(true) ->setApplyNetPrice(false) - ->addI18n((new CustomerGroupI18n())->setName('Endkunde')), + ->addI18n((new CustomerGroupI18n())->setName('Endkunde')->setLanguageIso('ger')), $result->getCustomerGroups()[0] ); $this->assertEquals( (new CustomerGroup())->setId(new Identity('b1d7b4cbe4d846f0b323a9d840800177')) ->setIsDefault(false) ->setApplyNetPrice(true) - ->addI18n((new CustomerGroupI18n())->setName('Haendler')), + ->addI18n((new CustomerGroupI18n())->setName('Haendler')->setLanguageIso('ger')), $result->getCustomerGroups()[1] );