Skip to content

Commit

Permalink
Merge pull request #1 from lol768/patch-2
Browse files Browse the repository at this point in the history
Update QueryBuilder test per changes to exists()
  • Loading branch information
irfanevrens committed Dec 1, 2014
2 parents c3b9d2f + 5017f1a commit 77ae986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Database/DatabaseQueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ public function testAggregateFunctions()
$this->assertEquals(1, $results);

$builder = $this->getBuilder();
$builder->getConnection()->shouldReceive('select')->once()->with('select count(*) as aggregate from "users"', array())->andReturn(array(array('aggregate' => 1)));
$builder->getConnection()->shouldReceive('select')->once()->with('select count(*) as aggregate from "users" limit 1', array())->andReturn(array(array('aggregate' => 1)));
$builder->getProcessor()->shouldReceive('processSelect')->once()->andReturnUsing(function($builder, $results) { return $results; });
$results = $builder->from('users')->exists();
$this->assertTrue($results);
Expand Down

0 comments on commit 77ae986

Please sign in to comment.