Skip to content

Commit

Permalink
Update testcase for whereLike method (#52351)
Browse files Browse the repository at this point in the history
  • Loading branch information
einar-hansen authored Aug 1, 2024
1 parent 516bf8d commit 8a18838
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
@@ -1384,9 +1384,9 @@ public function testWhereNone()
$this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings());

$builder = $this->getBuilder();
$builder->select('*')->from('users')->whereNone(['last_name', 'email'], '%Otwell%');
$builder->select('*')->from('users')->whereNone(['last_name', 'email'], 'Otwell');
$this->assertSame('select * from "users" where not ("last_name" = ? or "email" = ?)', $builder->toSql());
$this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings());
$this->assertEquals(['Otwell', 'Otwell'], $builder->getBindings());

$builder = $this->getBuilder();
$builder->select('*')->from('users')->where('first_name', 'like', '%Taylor%')->whereNone(['last_name', 'email'], 'like', '%Otwell%');

0 comments on commit 8a18838

Please sign in to comment.