Permalink
Browse files

MINOR Added double quotes around column names in AggregateTest

  • Loading branch information...
1 parent 436e0f0 commit f4643e1b4a4501c8d881e9e80d2c4995376caf5d @halkyon halkyon committed Oct 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/model/AggregateTest.php
@@ -94,12 +94,12 @@ function testAutoTypeAggregate() {
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)
);
}
/* */

0 comments on commit f4643e1

Please sign in to comment.