Skip to content

Commit

Permalink
Convert operators in the test to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
musiermoore committed Mar 2, 2024
1 parent 9278d71 commit ea03292
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Database/DatabaseQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ public function testWhereFulltextPostgres()
public function testWhereMultiple()
{
$builder = $this->getBuilder();
$builder->select('*')->from('users')->whereMultiple(['last_name', 'email'], 'LIKE','%Otwell%');
$builder->select('*')->from('users')->whereMultiple(['last_name', 'email'], 'like','%Otwell%');
$this->assertSame('select * from "users" where ("last_name" like ? or "email" like ?)', $builder->toSql());
$this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings());

Expand All @@ -1203,8 +1203,8 @@ public function testWhereMultiple()
$this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings());

$builder = $this->getBuilder();
$builder->select('*')->from('users')->whereMultiple(['last_name', 'email'],'NOT LIKE', '%Otwell%', 'and');
$this->assertSame('select * from "users" where ("last_name" NOT LIKE ? and "email" NOT LIKE ?)', $builder->toSql());
$builder->select('*')->from('users')->whereMultiple(['last_name', 'email'],'not like', '%Otwell%', 'and');
$this->assertSame('select * from "users" where ("last_name" not like ? and "email" not like ?)', $builder->toSql());
$this->assertEquals(['%Otwell%', '%Otwell%'], $builder->getBindings());
}

Expand Down

0 comments on commit ea03292

Please sign in to comment.