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); }