mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed TranslatableTest for postgresql database driver (mostly ordering issues)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@103819 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a7fae06faa
commit
f8b4ebb5e9
@ -95,11 +95,13 @@ class TranslatableTest extends FunctionalTest {
|
||||
);
|
||||
|
||||
// test english
|
||||
$expected = $enPage->getTranslations()->column('Locale');
|
||||
$expected = array('es_ES', 'fr_FR');
|
||||
sort($expected);
|
||||
$actual = $enPage->getTranslations()->column('Locale');
|
||||
sort($actual);
|
||||
$this->assertEquals(
|
||||
$expected,
|
||||
array('es_ES', 'fr_FR')
|
||||
$actual
|
||||
);
|
||||
$this->assertNotNull($frPage->getTranslation('fr_FR'));
|
||||
$this->assertEquals(
|
||||
@ -113,9 +115,13 @@ class TranslatableTest extends FunctionalTest {
|
||||
);
|
||||
|
||||
// test spanish
|
||||
$actual = $esPage->getTranslations()->column('Locale');
|
||||
sort($actual);
|
||||
$expected = array('en_US', 'fr_FR');
|
||||
sort($expected);
|
||||
$this->assertEquals(
|
||||
$esPage->getTranslations()->column('Locale'),
|
||||
array('en_US', 'fr_FR')
|
||||
$actual,
|
||||
$expected
|
||||
);
|
||||
$this->assertNotNull($esPage->getTranslation('fr_FR'));
|
||||
$this->assertEquals(
|
||||
|
Loading…
x
Reference in New Issue
Block a user