File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
lib/internal/Magento/Framework/Setup/Test/Unit Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ protected function setUp()
5858 $ this ->mockConfig ->expects ($ this ->any ())
5959 ->method ('getAllowedLocales ' )
6060 ->willReturn ($ this ->expectedLocales );
61+ $ this ->mockConfig ->expects ($ this ->any ())
62+ ->method ('getAllowedCurrencies ' )
63+ ->willReturn ($ this ->expectedCurrencies );
6164
6265 $ this ->lists = new Lists ($ this ->mockConfig );
6366 }
@@ -73,4 +76,13 @@ public function testGetLocaleList()
7376 $ locales = array_intersect ($ this ->expectedLocales , array_keys ($ this ->lists ->getLocaleList ()));
7477 $ this ->assertEquals ($ this ->expectedLocales , $ locales );
7578 }
79+
80+ /**
81+ * Test Lists:getCurrencyList() considering allowed currencies config values.
82+ */
83+ public function testGetCurrencyList ()
84+ {
85+ $ currencies = array_intersect ($ this ->expectedCurrencies , array_keys ($ this ->lists ->getCurrencyList ()));
86+ $ this ->assertEquals ($ this ->expectedCurrencies , $ currencies );
87+ }
7688}
You can’t perform that action at this time.
0 commit comments