Skip to content

Commit

Permalink
Making test more resillient to different database servers
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Mar 8, 2015
1 parent 8687f24 commit 22e377f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/TestCase/Database/QueryTest.php
Expand Up @@ -1477,10 +1477,11 @@ public function testSelectDistinctON()
->select(['id', 'author_id'])
->distinct(['author_id'])
->from(['a' => 'articles'])
->order(['id' => 'DESC'])
->execute();
$this->assertCount(2, $result);
$expected = [
['id' => 1, 'author_id' => 1],
['id' => 3, 'author_id' => 1],
['id' => 2, 'author_id' => 3],
];
$this->assertEquals($expected, $result->fetchAll('assoc'));
Expand Down

0 comments on commit 22e377f

Please sign in to comment.