mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Fixed quoting of test SQL
This commit is contained in:
parent
7d9f0a9e51
commit
3551a94e67
@ -56,7 +56,7 @@ class TranslatableTest extends FunctionalTest {
|
||||
$translatedPage->write();
|
||||
$translatedPage->publish('Stage', 'Live');
|
||||
|
||||
$where = sprintf("MenuTitle = '%s'", Convert::raw2sql($origPage->MenuTitle));
|
||||
$where = sprintf("\"MenuTitle\" = '%s'", Convert::raw2sql($origPage->MenuTitle));
|
||||
|
||||
// make sure that our query was filtered
|
||||
$this->assertEquals(1, Page::get()->where($where)->count());
|
||||
|
Loading…
Reference in New Issue
Block a user