diff --git a/tests/Integration/Database/QueryBuilderTest.php b/tests/Integration/Database/QueryBuilderTest.php index 21e627f0308..3ac8e047ebb 100644 --- a/tests/Integration/Database/QueryBuilderTest.php +++ b/tests/Integration/Database/QueryBuilderTest.php @@ -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.