From d606929bf8d998f4d1601af797c9945c035121dc Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Thu, 31 May 2012 13:22:30 +0200 Subject: [PATCH] adjust functional test to check return values to have failure instead of exception --- .../Tests/ODM/PHPCR/Functional/DocumentRepositoryTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Doctrine/Tests/ODM/PHPCR/Functional/DocumentRepositoryTest.php b/tests/Doctrine/Tests/ODM/PHPCR/Functional/DocumentRepositoryTest.php index b1e3d0111..673f3d041 100644 --- a/tests/Doctrine/Tests/ODM/PHPCR/Functional/DocumentRepositoryTest.php +++ b/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);