MINOR Fixed TranslatableSearchFormTest for postgresql (strict type assertions)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@103821 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-30 04:11:55 +00:00 committed by Sam Minnee
parent f8b4ebb5e9
commit b1b357d1ef

View File

@ -79,9 +79,11 @@ class TranslatableSearchFormTest extends FunctionalTest {
$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'
);
}