Fixed quoting of test SQL

This commit is contained in:
Ingo Schommer 2013-06-03 12:05:22 +02:00
parent 7d9f0a9e51
commit 3551a94e67

View File

@ -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());