mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
f8b4ebb5e9
commit
b1b357d1ef
@ -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'
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user