Skip to content

Commit

Permalink
Update TranslatorTest: adjust systemwide locales order
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Fuhr committed Sep 5, 2014
1 parent ba623d0 commit ab71b1c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/php/library/Icinga/Util/TranslatorTest.php
Expand Up @@ -26,9 +26,15 @@ public function setUp()

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'
);
}
Expand Down

0 comments on commit ab71b1c

Please sign in to comment.