Doctrine\MongoDB\Tests\Query\BuilderTest::testFindQuery PHP Method

testFindQuery() public method

public testFindQuery ( )
    public function testFindQuery()
    {
        $qb = $this->getTestQueryBuilder()->where("function() { return this.username == 'boo' }");
        $expected = ['$where' => "function() { return this.username == 'boo' }"];
        $this->assertEquals($expected, $qb->getQueryArray());
    }
BuilderTest