mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
82f1742569
commit
0ec9d0e48f
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user