Skip to content

Commit

Permalink
test: replace update(null, $data) with updateAll($data)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 28, 2022
1 parent de5d06e commit d263a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/Models/UpdateModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function testUpdateBatchWithEntity(): void
$this->assertSame(2, $this->createModel(UserModel::class)->updateBatch([$entity1, $entity2], 'id'));
}

public function testUpdateNoPrimaryKey(): void
public function testUpdateAllNoPrimaryKey(): void
{
$this->db->table('secondary')->insert([
'key' => 'foo',
Expand All @@ -232,7 +232,7 @@ public function testUpdateNoPrimaryKey(): void

$this->createModel(SecondaryModel::class)
->where('key', 'foo')
->update(null, ['key' => 'bar', 'value' => 'baz']);
->updateAll(['key' => 'bar', 'value' => 'baz']);

$this->seeInDatabase('secondary', [
'key' => 'bar',
Expand Down

0 comments on commit d263a65

Please sign in to comment.