BUGFIX: results sorted alphabetically for consistency (from r101492)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112001 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-13 00:47:22 +00:00
parent 82f1742569
commit 0ec9d0e48f

View File

@ -74,9 +74,14 @@ class TranslatableTest extends FunctionalTest {
$esPage = $enPage->createTranslation('es_ES'); $esPage = $enPage->createTranslation('es_ES');
// test french // test french
$array1=$frPage->getTranslations()->column('Locale');
$array2=array('en_US','es_ES');
sort($array1);
sort($array2);
$this->assertEquals( $this->assertEquals(
$frPage->getTranslations()->column('Locale'), $array1,
array('en_US','es_ES') $array2
); );
$this->assertNotNull($frPage->getTranslation('en_US')); $this->assertNotNull($frPage->getTranslation('en_US'));
$this->assertEquals( $this->assertEquals(