From 7ca1e3447626223d4632c7b02390ad5fa41500bc Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Wed, 31 Mar 2010 23:14:52 +0000 Subject: [PATCH] BUGFIX: columns quoted properly --- tests/BlogHolderFunctionalTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/BlogHolderFunctionalTest.php b/tests/BlogHolderFunctionalTest.php index c8b56d4..d737038 100644 --- a/tests/BlogHolderFunctionalTest.php +++ b/tests/BlogHolderFunctionalTest.php @@ -31,7 +31,7 @@ class BlogHolderFunctionalTest extends FunctionalTest { 'SecurityID' => $securityID ); $response = $this->post('blog/BlogEntryForm', $data); - $this->assertFalse(DataObject::get_one('BlogEntry', sprintf("Title = 'Disallowed'"))); + $this->assertFalse(DataObject::get_one('BlogEntry', sprintf("\"Title\" = 'Disallowed'"))); // with login $blogEditor = $this->objFromFixture('Member', 'blog_editor'); @@ -47,6 +47,6 @@ class BlogHolderFunctionalTest extends FunctionalTest { ); $response = $this->post('blog/BlogEntryForm', $data); - $this->assertType('BlogEntry', DataObject::get_one('BlogEntry', sprintf("Title = 'Allowed'"))); + $this->assertType('BlogEntry', DataObject::get_one('BlogEntry', sprintf("\"Title\" = 'Allowed'"))); } } \ No newline at end of file