Skip to content

Commit a5fb82d

Browse files
committed
Fix tests on postgres
1 parent 85533b6 commit a5fb82d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/TestCase/ORM/TableTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,13 +2808,17 @@ public function testSaveManyResultSet()
28082808
{
28092809
$table = TableRegistry::get('authors');
28102810

2811-
$entities = $table->find()->all();
2811+
$entities = $table->find()
2812+
->order(['id' => 'ASC'])
2813+
->all();
28122814
$entities->first()->name = 'admad';
28132815

28142816
$result = $table->saveMany($entities);
28152817
$this->assertSame($entities, $result);
28162818

2817-
$first = $table->find()->first();
2819+
$first = $table->find()
2820+
->order(['id' => 'ASC'])
2821+
->first();
28182822
$this->assertSame('admad', $first->name);
28192823
}
28202824

0 commit comments

Comments
 (0)