From ea032927cbb9c966fdb81c050a6aa7e5a447a435 Mon Sep 17 00:00:00 2001 From: Alexander Sustavov Date: Sat, 2 Mar 2024 20:24:54 +0600 Subject: [PATCH] Convert operators in the test to lowercase --- tests/Database/DatabaseQueryBuilderTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Database/DatabaseQueryBuilderTest.php b/tests/Database/DatabaseQueryBuilderTest.php index d732401c8d7c..5ec973ce9c43 100755 --- a/tests/Database/DatabaseQueryBuilderTest.php +++ b/tests/Database/DatabaseQueryBuilderTest.php @@ -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()); @@ -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()); }