Browse Source

Using the correct order by syntax

Jose Lorenzo Rodriguez 11 years ago
parent
commit
dbc6dd5fe2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/ORM/QueryRegressionTest.php

+ 1 - 1
tests/TestCase/ORM/QueryRegressionTest.php

@@ -105,7 +105,7 @@ class QueryRegressionTest extends TestCase {
 
 		$results = $table->find()
 			->contain(['Authors.Stuff', 'Things.Stuff'])
-			->order(['Articles.id'])
+			->order(['Articles.id' => 'ASC'])
 			->toArray();
 
 		$this->assertEquals(1, $results[0]->articles_tag->foo->id);