From 121b7425dacd96e398a050058352d592981dafd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Tue, 9 Jul 2024 16:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Cases/BuilderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Cases/BuilderTest.php b/tests/Cases/BuilderTest.php index b2adaf5..80c7677 100644 --- a/tests/Cases/BuilderTest.php +++ b/tests/Cases/BuilderTest.php @@ -90,7 +90,7 @@ public function testLikeChinese() $res = Foo::query()->where('name', 'like', '*中文*')->get()->first(); $this->assertSame(8, $res['id']); - $res = Foo::query()->where('summary', 'match', '中文')->get(); + $res = Foo::query()->where('summary', 'match', '中文')->get()->first(); $this->assertSame(8, $res['id']); } @@ -139,7 +139,7 @@ public function testLTAndGT() $res = Foo::query()->where('id', '>', 4)->get(); $this->assertSame(5, $res->count()); - $res = Foo::query()->where('id', '>=', 4)->get(); + $res = Foo::query()->where('id', '>=', 4)->where('id', '<', 8)->get(); $this->assertSame(4, $res->count()); }