Skip to content

Commit

Permalink
Fixing test that relied to wrong sortBy behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jan 6, 2015
1 parent eace3a3 commit 7e4e0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php
Expand Up @@ -839,7 +839,7 @@ public function testTranslationWithUnionQuery()
$query = $table->find()->where(['Comments.id' => 6]);
$query2 = $table->find()->where(['Comments.id' => 5]);
$query->union($query2);
$results = $query->sortBy('id')->toArray();
$results = $query->sortBy('id', SORT_ASC)->toList();
$this->assertCount(2, $results);

$this->assertEquals('First Comment for Second Article', $results[0]->comment);
Expand Down

0 comments on commit 7e4e0d5

Please sign in to comment.