Skip to content

Commit a6a359b

Browse files
committed
MAGETWO-64557: User can change the Interface Locale only to locales that are already deployed
1 parent bebdc08 commit a6a359b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/internal/Magento/Framework/Locale/Test/Unit/Deployed/OptionsTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,39 +69,39 @@ protected function setUp()
6969
}
7070

7171
/**
72-
* @dataProvider getLocaleDataProvider
7372
* @param string $mode
7473
* @param array $locales
7574
* @param array $expectedLocales
7675
* @param array $deployedCodes
76+
* @dataProvider getLocaleDataProvider
7777
*/
78-
public function testGetLocale($mode, $locales, $expectedLocales, $deployedCodes)
78+
public function testGetOptionLocales($mode, $locales, $expectedLocales, $deployedCodes)
7979
{
8080
$this->localeListsMock->expects($this->once())
8181
->method('getOptionLocales')
8282
->willReturn($locales);
8383

8484
$this->prepareGetLocales($mode, $deployedCodes);
8585

86-
$this->assertEquals($expectedLocales, array_values($this->model->getLocales()));
86+
$this->assertEquals($expectedLocales, array_values($this->model->getOptionLocales()));
8787
}
8888

8989
/**
90-
* @dataProvider getLocaleDataProvider
9190
* @param string $mode
9291
* @param array $locales
9392
* @param array $expectedLocales
9493
* @param array $deployedCodes
94+
* @dataProvider getLocaleDataProvider
9595
*/
96-
public function testGetTranslatedLocales($mode, $locales, $expectedLocales, $deployedCodes)
96+
public function testGetTranslatedOptionLocales($mode, $locales, $expectedLocales, $deployedCodes)
9797
{
9898
$this->localeListsMock->expects($this->once())
9999
->method('getTranslatedOptionLocales')
100100
->willReturn($locales);
101101

102102
$this->prepareGetLocales($mode, $deployedCodes);
103103

104-
$this->assertEquals($expectedLocales, array_values($this->model->getTranslatedLocales()));
104+
$this->assertEquals($expectedLocales, array_values($this->model->getTranslatedOptionLocales()));
105105
}
106106

107107
/**

0 commit comments

Comments
 (0)