Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add unit test for Query\Builder::exclude()

  • Loading branch information...
commit 5c7c61a21774a29ead2155be3914c202ed7906b0 1 parent 20bdf16
@pierrre pierrre authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/Doctrine/MongoDB/Tests/Query/BuilderTest.php
View
12 tests/Doctrine/MongoDB/Tests/Query/BuilderTest.php
@@ -526,6 +526,18 @@ public function testSelect()
$this->assertEquals($expected, $qb->debug('select'));
}
+ public function testExclude()
+ {
+ $qb = $this->getTestQueryBuilder()
+ ->exclude('foo', 'bar');
+
+ $expected = array(
+ 'foo' => 0,
+ 'bar' => 0
+ );
+ $this->assertEquals($expected, $qb->debug('select'));
+ }
+
private function getTestQueryBuilder()
{
return $this->conn->selectCollection('db', 'users')->createQueryBuilder();
Please sign in to comment.
Something went wrong with that request. Please try again.