add orWhere

This commit is contained in:
Gregory Letellier
2023-11-15 11:50:15 +01:00
parent 35188860ce
commit 0db845a116
2 changed files with 46 additions and 6 deletions

View File

@@ -98,6 +98,10 @@ test("querybuilder", function() {
$qb->reset();
$rows = $qb->whereNotNull("col1")->get();
expect(count($rows))->toBe(2);
$qb->reset();
$rows = $qb->where("id",1)->orWhere("id",2)->get();
expect(count($rows))->toBe(2);
});
test("extending model",function()