Commit 0600331d authored by Jens Segers's avatar Jens Segers

Adding whereRaw test

parent 7f05cca1
...@@ -195,6 +195,10 @@ class QueryBuilderTest extends PHPUnit_Framework_TestCase { ...@@ -195,6 +195,10 @@ class QueryBuilderTest extends PHPUnit_Framework_TestCase {
$collection = DB::collection('users')->raw(); $collection = DB::collection('users')->raw();
$this->assertInstanceOf('MongoCollection', $collection); $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() public function testPush()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment