Skip to content

Commit

Permalink
finalize test for github issue doctrine#1294
Browse files Browse the repository at this point in the history
  • Loading branch information
narcoticfresh committed Dec 7, 2015
1 parent 61f5f76 commit 6366d44
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ public function testMongoRegexSearchOnIdentifierWithUuidStrategy()

$res = $qb->field('id')
->equals(new \MongoRegex("/^bbb.*$/i"))
->getQueryArray();
}
->getQueryArray();

$this->assertTrue(($res['_id'] instanceof \MongoRegex));
$this->assertEquals('^bbb.*$', $res['_id']->regex);
$this->assertEquals('i', $res['_id']->flags);
}
}

/** @ODM\Document */
class GH1294User
{
/** @ODM\Id(strategy="UUID") */
/** @ODM\Id(strategy="UUID", type="string") */
public $id;

/** @ODM\String */
Expand Down

0 comments on commit 6366d44

Please sign in to comment.