Skip to content

Commit

Permalink
Remove tests on exists and doesntExist
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Jan 29, 2025
1 parent 42053d0 commit 3bcfe7c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,12 +576,6 @@ public function testAggregate()
$this->assertEquals(3, DB::table('items')->min('amount'));
$this->assertEquals(34, DB::table('items')->max('amount'));
$this->assertEquals(17.75, DB::table('items')->avg('amount'));
$this->assertTrue(DB::table('items')->exists());
$this->assertTrue(DB::table('items')->where('name', 'knife')->exists());
$this->assertFalse(DB::table('items')->where('name', 'ladle')->exists());
$this->assertFalse(DB::table('items')->doesntExist());
$this->assertFalse(DB::table('items')->where('name', 'knife')->doesntExist());
$this->assertTrue(DB::table('items')->where('name', 'ladle')->doesntExist());

$this->assertEquals(2, DB::table('items')->where('name', 'spoon')->count('amount'));
$this->assertEquals(14, DB::table('items')->where('name', 'spoon')->max('amount'));
Expand Down

0 comments on commit 3bcfe7c

Please sign in to comment.