From 7fc131ee4a73b0adb7943f97bc6a3fbeff01ca3e Mon Sep 17 00:00:00 2001 From: Einar Hansen <49709354+einar-hansen@users.noreply.github.com> Date: Wed, 31 Jul 2024 21:26:51 +0200 Subject: [PATCH] Update testcase for whereLike method --- tests/Database/DatabaseQueryBuilderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Database/DatabaseQueryBuilderTest.php b/tests/Database/DatabaseQueryBuilderTest.php index 6dd3eef4dba8..aa32a552566f 100755 --- a/tests/Database/DatabaseQueryBuilderTest.php +++ b/tests/Database/DatabaseQueryBuilderTest.php @@ -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%');