Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Fixed TranslatableSearchFormTest for postgresql (strict type as…

…sertions) (from r103821)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112164 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit d7ffd8c601842aa092a944c1b59743b51a3a3a0f 1 parent cde2f6e
@sminnee sminnee authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/search/TranslatableSearchFormTest.php
View
6 tests/search/TranslatableSearchFormTest.php
@@ -79,9 +79,11 @@ function testPublishedPagesMatchedByTitleInDefaultLanguage() {
$results->column('ID'),
'Published pages in default language are not found when searching in another language'
);
+ $actual = $results->column('ID');
+ array_walk($actual, 'intval');
$this->assertContains(
- $translatedPublishedPage->ID,
- $results->column('ID'),
+ (int)$translatedPublishedPage->ID,
+ $actual,
'Published pages in another language are found when searching in this language'
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.