diff --git a/tests/TestCase/Database/QueryTest.php b/tests/TestCase/Database/QueryTest.php index af3774cae4a..4a58075f22f 100644 --- a/tests/TestCase/Database/QueryTest.php +++ b/tests/TestCase/Database/QueryTest.php @@ -1477,7 +1477,7 @@ public function testSelectDistinctON() ->select(['id', 'author_id']) ->distinct(['author_id']) ->from(['a' => 'articles']) - ->order(['id' => 'ASC']) + ->order(['author_id' => 'ASC']) ->execute(); $this->assertCount(2, $result); $results = $result->fetchAll('assoc');