Skip to content

Commit

Permalink
BUG FIX: column names quoted properly
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@100699 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
geoff-silverstripe authored and Sam Minnee committed Feb 2, 2011
1 parent c3006cc commit 16f4e99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/PageCommentsTest.php
Expand Up @@ -16,15 +16,15 @@ function testDeleteAllCommentsOnPage() {
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);
}

Expand Down

0 comments on commit 16f4e99

Please sign in to comment.