Skip to content

Commit

Permalink
Adding whereRaw test
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Dec 9, 2013
1 parent 7f05cca commit 0600331
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ public function testRaw()

$collection = DB::collection('users')->raw();
$this->assertInstanceOf('MongoCollection', $collection);

$results = DB::collection('users')->whereRaw(array('age' => 20))->get();
$this->assertEquals(1, count($results));
$this->assertEquals('Jane Doe', $results[0]['name']);
}

public function testPush()
Expand Down

0 comments on commit 0600331

Please sign in to comment.