mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
BUG FIX: column names quoted properly
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@100699 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c3006cc448
commit
16f4e99af9
@ -16,15 +16,15 @@ class PageCommentsTest extends FunctionalTest {
|
|||||||
null, $this->session());
|
null, $this->session());
|
||||||
Director::test('second-page', 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);
|
$this->assertNull($secondComments);
|
||||||
|
|
||||||
$first = $this->objFromFixture('Page', 'first');
|
$first = $this->objFromFixture('Page', 'first');
|
||||||
$firstComments = DataObject::get('PageComment', 'ParentID = '.$first->ID);
|
$firstComments = DataObject::get('PageComment', '"ParentID" = '.$first->ID);
|
||||||
$this->assertNotNull($firstComments);
|
$this->assertNotNull($firstComments);
|
||||||
|
|
||||||
$third = $this->objFromFixture('Page', 'third');
|
$third = $this->objFromFixture('Page', 'third');
|
||||||
$thirdComments = DataObject::get('PageComment', 'ParentID = '.$third->ID);
|
$thirdComments = DataObject::get('PageComment', '"ParentID" = '.$third->ID);
|
||||||
$this->assertEquals($thirdComments->Count(), 3);
|
$this->assertEquals($thirdComments->Count(), 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user