Skip to content

Commit

Permalink
Fix tests on postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Apr 18, 2016
1 parent 85533b6 commit a5fb82d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/TestCase/ORM/TableTest.php
Expand Up @@ -2808,13 +2808,17 @@ public function testSaveManyResultSet()
{
$table = TableRegistry::get('authors');

$entities = $table->find()->all();
$entities = $table->find()
->order(['id' => 'ASC'])
->all();
$entities->first()->name = 'admad';

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

$first = $table->find()->first();
$first = $table->find()
->order(['id' => 'ASC'])
->first();
$this->assertSame('admad', $first->name);
}

Expand Down

0 comments on commit a5fb82d

Please sign in to comment.