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 1616use Magento \Store \Api \Data \WebsiteInterface ;
1717use Magento \Store \Model \ScopeInterface ;
1818use Magento \Directory \Model \ResourceModel \Country \Collection as CountryCollection ;
19+ use PHPUnit \Framework \MockObject \MockObject ;
1920
2021class 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);
You can’t perform that action at this time.
0 commit comments