File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
app/code/Magento/CustomerImportExport/Test/Unit/Model/Import Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 16
16
use Magento \Store \Api \Data \WebsiteInterface ;
17
17
use Magento \Store \Model \ScopeInterface ;
18
18
use Magento \Directory \Model \ResourceModel \Country \Collection as CountryCollection ;
19
+ use PHPUnit \Framework \MockObject \MockObject ;
19
20
20
21
class CountryWithWebsitesTest extends TestCase
21
22
{
23
+ /**
24
+ * @var CountryCollectionFactory|MockObject
25
+ */
22
26
private $ countriesFactoryMock ;
27
+
28
+ /**
29
+ * @var AllowedCountries|MockObject
30
+ */
23
31
private $ allowedCountriesReaderMock ;
32
+
33
+ /**
34
+ * @var StoreManagerInterface|MockObject
35
+ */
24
36
private $ storeManagerMock ;
37
+
38
+ /**
39
+ * @var CustomerShareConfig|MockObject
40
+ */
25
41
private $ shareConfigMock ;
42
+
43
+ /**
44
+ * @var CountryWithWebsites
45
+ */
26
46
private $ countryWithWebsites ;
27
47
48
+ /**
49
+ * @inheritDoc
50
+ */
28
51
protected function setUp (): void
29
52
{
30
53
$ this ->countriesFactoryMock = $ this ->createMock (CountryCollectionFactory::class);
@@ -40,6 +63,12 @@ protected function setUp(): void
40
63
);
41
64
}
42
65
66
+ /**
67
+ * Tests method returns allowed countries for specified website
68
+ *
69
+ * @return void
70
+ * @throws \PHPUnit\Framework\MockObject\Exception
71
+ */
43
72
public function testGetCountiesPerWebsite ()
44
73
{
45
74
$ websiteMock = $ this ->createMock (WebsiteInterface::class);
You can’t perform that action at this time.
0 commit comments