We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72cb244 commit e56cbdeCopy full SHA for e56cbde
app/code/Magento/Directory/Test/Unit/Model/AllowedCountriesTest.php
@@ -70,4 +70,20 @@ public function testGetAllowedCountries()
70
$this->allowedCountriesReader->getAllowedCountries(ScopeInterface::SCOPE_WEBSITE, true)
71
);
72
}
73
+
74
+ public function testGetAllowedCountriesDefaultScope()
75
+ {
76
+ $this->storeManagerMock->expects($this->never())
77
+ ->method('getStore');
78
79
+ $this->scopeConfigMock->expects($this->once())
80
+ ->method('getValue')
81
+ ->with(AllowedCountries::ALLOWED_COUNTRIES_PATH, ScopeInterface::SCOPE_STORE, 0)
82
+ ->willReturn('AM');
83
84
+ $this->assertEquals(
85
+ ['AM' => 'AM'],
86
+ $this->allowedCountriesReader->getAllowedCountries(ScopeInterface::SCOPE_STORE, 0)
87
+ );
88
+ }
89
0 commit comments