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

testAddNot() public method

public testAddNot ( )
    public function testAddNot()
    {
        $qb = $this->getTestQueryBuilder();
        $qb->field('username')->not($qb->expr()->in(['boo']));
        $expected = ['username' => ['$not' => ['$in' => ['boo']]]];
        $this->assertEquals($expected, $qb->getQueryArray());
    }
BuilderTest