Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
zakariaarrid committed Oct 25, 2024
1 parent d398e68 commit 2d78689
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Integration/Database/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,11 +603,13 @@ public function testWhenWhere()
$this->assertSame(1, DB::table('posts')->whenWhere(true, 'id', 1)->count());
$this->assertSame(2, DB::table('posts')->whenWhere(false, 'id', 1)->count());
}

public function testOrWhenWhere()
{
$this->assertSame(1, DB::table('posts')->whenWhere(true, 'id', 1)->count());
$this->assertSame(2, DB::table('posts')->whenWhere(false, 'id', 1)->count());
}

public function testPluck()
{
// Test SELECT override, since pluck will take the first column.
Expand Down

0 comments on commit 2d78689

Please sign in to comment.