Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Added double quotes around column names in AggregateTest

  • Loading branch information...
commit f4643e1b4a4501c8d881e9e80d2c4995376caf5d 1 parent 436e0f0
Sean Harvey halkyon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/model/AggregateTest.php
4 tests/model/AggregateTest.php
View
@@ -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)
);
}
/* */
Please sign in to comment.
Something went wrong with that request. Please try again.