Permalink
Browse files

adjust functional test to check return values to have failure instead…

… of exception
  • Loading branch information...
1 parent 31016e5 commit d606929bf8d998f4d1601af797c9945c035121dc @dbu dbu committed May 31, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/Doctrine/Tests/ODM/PHPCR/Functional/DocumentRepositoryTest.php
@@ -47,6 +47,10 @@ public function testLoadMany()
$this->dm->clear();
$users = $this->dm->getRepository('Doctrine\Tests\Models\CMS\CmsUser')->findMany(array($user1->id, $user2->id));
+ $this->assertTrue(isset($users['/functional/beberlei']));
+ $this->assertTrue(isset($users['/functional/lsmith']));
+ $this->assertInstanceOf('Doctrine\\Tests\\Models\\CMS\\CmsUser', $users['/functional/beberlei']);
+ $this->assertInstanceOf('Doctrine\\Tests\\Models\\CMS\\CmsUser', $users['/functional/lsmith']);
$this->assertEquals($user1->username, $users['/functional/beberlei']->username);
$this->assertEquals($user2->username, $users['/functional/lsmith']->username);

0 comments on commit d606929

Please sign in to comment.