Skip to content

Commit

Permalink
test: update test code
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Dec 3, 2023
1 parent 4307472 commit 942a00f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/system/Database/Builder/GetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public function testGet(): void
*/
public function testGetWithReset(): void
{
$config = config(Feature::class);
$config->limitZeroAsAll = false;

$builder = $this->db->table('users');
$builder->testMode()->where('username', 'bogus');

Expand Down
3 changes: 3 additions & 0 deletions tests/system/Database/Live/GetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public function testGetWitLimit(): void

public function testGetWithLimitZero(): void
{
$config = config(Feature::class);
$config->limitZeroAsAll = false;

$jobs = $this->db->table('job')->limit(0)->get()->getResult();

$this->assertCount(0, $jobs);
Expand Down

0 comments on commit 942a00f

Please sign in to comment.