MINOR Added double quotes around column names in AggregateTest

This commit is contained in:
Sean Harvey 2011-10-29 17:27:03 +13:00
parent 436e0f0475
commit f4643e1b4a

View File

@ -94,12 +94,12 @@ class AggregateTest extends SapphireTest {
function testBaseFieldAggregate() { function testBaseFieldAggregate() {
$this->assertEquals( $this->assertEquals(
$this->formatDate(DataObject::Aggregate('AggregateTest_Foo')->Max('LastEdited')), $this->formatDate(DataObject::Aggregate('AggregateTest_Foo')->Max('LastEdited')),
$this->formatDate(DataObject::get_one('AggregateTest_Foo', '', '', 'LastEdited DESC')->LastEdited) $this->formatDate(DataObject::get_one('AggregateTest_Foo', '', '', '"LastEdited" DESC')->LastEdited)
); );
$this->assertEquals( $this->assertEquals(
$this->formatDate(DataObject::Aggregate('AggregateTest_Foo')->Max('Created')), $this->formatDate(DataObject::Aggregate('AggregateTest_Foo')->Max('Created')),
$this->formatDate(DataObject::get_one('AggregateTest_Foo', '', '', 'Created DESC')->Created) $this->formatDate(DataObject::get_one('AggregateTest_Foo', '', '', '"Created" DESC')->Created)
); );
} }
/* */ /* */