Skip to content

Commit

Permalink
Use specific ordering.
Browse files Browse the repository at this point in the history
Fixes failures in Postgres.
  • Loading branch information
markstory committed Jun 29, 2013
1 parent 0079674 commit 9038f11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Cake/Test/TestCase/ORM/TableTest.php
Expand Up @@ -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);
Expand Down

0 comments on commit 9038f11

Please sign in to comment.