diff --git a/tests/model/AggregateTest.php b/tests/model/AggregateTest.php index 392c91df2..e0dfe01e6 100644 --- a/tests/model/AggregateTest.php +++ b/tests/model/AggregateTest.php @@ -94,12 +94,12 @@ class AggregateTest extends SapphireTest { function testBaseFieldAggregate() { $this->assertEquals( $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->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) ); } /* */