build('limit:1')->limit(2); $this->assertEquals('select * from products limit 2', $this->dumpSql($builder)); } /** @test */ public function it_can_use_first_instead_of_get() { $queryLog = DB::pretend(function () { $this->build('')->first(); }); $this->assertEquals('select * from `products` limit 1', $queryLog[0]['query']); } }