Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Fixed TranslatableTest for postgresql database driver (mostly o…

…rdering issues) (from r103819)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112163 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit cde2f6ef67e0706ffcb8ecf5f8f39dfdc9e45bbf 1 parent a40d190
Sam Minnée sminnee authored
Showing with 10 additions and 4 deletions.
  1. +10 −4 tests/model/TranslatableTest.php
14 tests/model/TranslatableTest.php
View
@@ -95,11 +95,13 @@ function testTranslationGroups() {
);
// 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 @@ function testTranslationGroups() {
);
// 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(
Please sign in to comment.
Something went wrong with that request. Please try again.