We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f05cca commit 0600331Copy full SHA for 0600331
tests/QueryBuilderTest.php
@@ -195,6 +195,10 @@ public function testRaw()
195
196
$collection = DB::collection('users')->raw();
197
$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']);
202
}
203
204
public function testPush()
0 commit comments