Skip to content

Commit

Permalink
alter testPreservedAreAppliedByInsertUsing() to not conflict with new…
Browse files Browse the repository at this point in the history
… behaviour
  • Loading branch information
jonnott committed Mar 27, 2023
1 parent cc12400 commit d2f1feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Database/DatabaseQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3366,11 +3366,11 @@ public function testPreservedAreAppliedByInsertGetId()
public function testPreservedAreAppliedByInsertUsing()
{
$builder = $this->getBuilder();
$builder->getConnection()->shouldReceive('affectingStatement')->once()->with('insert into "users" () select *', []);
$builder->getConnection()->shouldReceive('affectingStatement')->once()->with('insert into "users" ("email") select *', []);
$builder->beforeQuery(function ($builder) {
$builder->from('users');
});
$builder->insertUsing([], $this->getBuilder());
$builder->insertUsing(["email"], $this->getBuilder());
}

public function testPreservedAreAppliedByUpsert()
Expand Down

0 comments on commit d2f1feb

Please sign in to comment.