Update TranslatorTest: adjust systemwide locales order

This commit is contained in:
Alexander Fuhr 2014-09-05 10:53:56 +02:00
parent ba623d0544
commit ab71b1cf1c
1 changed files with 8 additions and 2 deletions

View File

@ -26,9 +26,15 @@ class TranslatorTest extends BaseTestCase
public function testWhetherGetAvailableLocaleCodesReturnsAllAvailableLocaleCodes()
{
$expected = array(Translator::DEFAULT_LOCALE, 'de_DE', 'fr_FR');
$result = Translator::getAvailableLocaleCodes();
sort($expected);
sort($result);
$this->assertEquals(
array(Translator::DEFAULT_LOCALE, 'de_DE', 'fr_FR'),
Translator::getAvailableLocaleCodes(),
$expected,
$result,
'Translator::getAvailableLocaleCodes does not return all available locale codes'
);
}