Skip to content

Commit 54de2cb

Browse files
committed
Adding whereRaw test
1 parent e0801b1 commit 54de2cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: tests/QueryBuilderTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ public function testRaw()
195195

196196
$collection = DB::collection('users')->raw();
197197
$this->assertInstanceOf('MongoCollection', $collection);
198+
199+
$results = DB::collection('users')->whereRaw(array('age' => 20))->get();
200+
$this->assertEquals(1, count($results));
201+
$this->assertEquals('Jane Doe', $results[0]['name']);
198202
}
199203

200204
public function testPush()

0 commit comments

Comments
 (0)