From c12ebeb9fea9859a535996488a0ae04f09fd1742 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 4 Oct 2010 06:01:27 +0000 Subject: [PATCH] BUG FIX: column names quoted properly (from r100699) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111630 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/PageCommentsTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/PageCommentsTest.php b/tests/PageCommentsTest.php index fa57b991..7d2f6b81 100644 --- a/tests/PageCommentsTest.php +++ b/tests/PageCommentsTest.php @@ -16,15 +16,15 @@ class PageCommentsTest extends FunctionalTest { null, $this->session()); Director::test('second-page', null, $this->session()); - $secondComments = DataObject::get('PageComment', 'ParentID = '.$second->ID); + $secondComments = DataObject::get('PageComment', '"ParentID" = '.$second->ID); $this->assertNull($secondComments); $first = $this->objFromFixture('Page', 'first'); - $firstComments = DataObject::get('PageComment', 'ParentID = '.$first->ID); + $firstComments = DataObject::get('PageComment', '"ParentID" = '.$first->ID); $this->assertNotNull($firstComments); $third = $this->objFromFixture('Page', 'third'); - $thirdComments = DataObject::get('PageComment', 'ParentID = '.$third->ID); + $thirdComments = DataObject::get('PageComment', '"ParentID" = '.$third->ID); $this->assertEquals($thirdComments->Count(), 3); }