We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85533b6 commit a5fb82dCopy full SHA for a5fb82d
tests/TestCase/ORM/TableTest.php
@@ -2808,13 +2808,17 @@ public function testSaveManyResultSet()
2808
{
2809
$table = TableRegistry::get('authors');
2810
2811
- $entities = $table->find()->all();
+ $entities = $table->find()
2812
+ ->order(['id' => 'ASC'])
2813
+ ->all();
2814
$entities->first()->name = 'admad';
2815
2816
$result = $table->saveMany($entities);
2817
$this->assertSame($entities, $result);
2818
- $first = $table->find()->first();
2819
+ $first = $table->find()
2820
2821
+ ->first();
2822
$this->assertSame('admad', $first->name);
2823
}
2824
0 commit comments