diff --git a/lib/Cake/Test/TestCase/ORM/TableTest.php b/lib/Cake/Test/TestCase/ORM/TableTest.php index e273c1a5f17..8aa5e03011c 100644 --- a/lib/Cake/Test/TestCase/ORM/TableTest.php +++ b/lib/Cake/Test/TestCase/ORM/TableTest.php @@ -385,7 +385,10 @@ public function testUpdateAll() { $result = $table->updateAll($fields, ['id <' => 4]); $this->assertTrue($result); - $result = $table->find('all')->select(['username'])->toArray(); + $result = $table->find('all') + ->select(['username']) + ->order(['id' => 'asc']) + ->toArray(); $expected = array_fill(0, 3, $fields); $expected[] = ['username' => 'garrett']; $this->assertEquals($expected, $result);