Skip to content

Commit e7e29eb

Browse files
committed
ACP2E-3382: Exported customer address cannot be imported
1 parent ba8b545 commit e7e29eb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

app/code/Magento/CustomerImportExport/Test/Unit/Model/Import/CountryWithWebsitesTest.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,38 @@
1616
use Magento\Store\Api\Data\WebsiteInterface;
1717
use Magento\Store\Model\ScopeInterface;
1818
use Magento\Directory\Model\ResourceModel\Country\Collection as CountryCollection;
19+
use PHPUnit\Framework\MockObject\MockObject;
1920

2021
class CountryWithWebsitesTest extends TestCase
2122
{
23+
/**
24+
* @var CountryCollectionFactory|MockObject
25+
*/
2226
private $countriesFactoryMock;
27+
28+
/**
29+
* @var AllowedCountries|MockObject
30+
*/
2331
private $allowedCountriesReaderMock;
32+
33+
/**
34+
* @var StoreManagerInterface|MockObject
35+
*/
2436
private $storeManagerMock;
37+
38+
/**
39+
* @var CustomerShareConfig|MockObject
40+
*/
2541
private $shareConfigMock;
42+
43+
/**
44+
* @var CountryWithWebsites
45+
*/
2646
private $countryWithWebsites;
2747

48+
/**
49+
* @inheritDoc
50+
*/
2851
protected function setUp(): void
2952
{
3053
$this->countriesFactoryMock = $this->createMock(CountryCollectionFactory::class);
@@ -40,6 +63,12 @@ protected function setUp(): void
4063
);
4164
}
4265

66+
/**
67+
* Tests method returns allowed countries for specified website
68+
*
69+
* @return void
70+
* @throws \PHPUnit\Framework\MockObject\Exception
71+
*/
4372
public function testGetCountiesPerWebsite()
4473
{
4574
$websiteMock = $this->createMock(WebsiteInterface::class);

0 commit comments

Comments
 (0)