Skip to content

Commit

Permalink
修复单测
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jul 9, 2024
1 parent 6be9d6e commit 121b742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Cases/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down Expand Up @@ -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());
}

Expand Down

0 comments on commit 121b742

Please sign in to comment.