Skip to content

Commit

Permalink
Fix config path
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Jul 15, 2021
1 parent be31753 commit da1ad52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Model/ResourceModel/Country/Relation/ReadHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

use InvalidArgumentException;
use Magento\Directory\Model\Country;
use Magento\Directory\Model\ResourceModel\Country\CollectionFactory;
use Magento\Directory\Model\ResourceModel\Country\Collection;
use Magento\Directory\Model\ResourceModel\Country\CollectionFactory;
use Magento\Framework\EntityManager\HydratorPool;
use Magento\Framework\EntityManager\Operation\ExtensionInterface;
use Magento\Framework\Exception\NoSuchEntityException;
Expand Down
14 changes: 8 additions & 6 deletions Test/Unit/Model/Mapper/CountryStoreMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ public function countriesByStoreMapper(): array

private function setupStoreManager(): void
{
$this->scopeConfig->method('getValue')->with('country/information/store', 'default', null)->willReturn(
'{"_0":{"countries":["US"],"store":111},"_1":{"countries":["CA"],"store":112},' .
'"_2":{"countries":["FR"],"store":211},"_3":{"countries":["DE"],"store":212},' .
'"_4":{"countries":["BE"],"store":213},"_5":{"countries":["RS"],"store":311},' .
'"_6":{"countries":["RU"],"store":312},"_7":{"countries":["FR","ES"],"store":313}}'
);
$this->scopeConfig->method('getValue')
->with('country/information/store', 'default', null)
->willReturn(
'{"_0":{"countries":["US"],"store":111},"_1":{"countries":["CA"],"store":112},' .
'"_2":{"countries":["FR"],"store":211},"_3":{"countries":["DE"],"store":212},' .
'"_4":{"countries":["BE"],"store":213},"_5":{"countries":["RS"],"store":311},' .
'"_6":{"countries":["RU"],"store":312},"_7":{"countries":["FR","ES"],"store":313}}'
);

$this->storeManager->method('getWebsite')->willReturnMap([
[1, $this->createWebsiteMock(1, 'website_us')],
Expand Down

0 comments on commit da1ad52

Please sign in to comment.