Skip to content

Commit

Permalink
adjust functional test to check return values to have failure instead…
Browse files Browse the repository at this point in the history
… of exception
  • Loading branch information
dbu committed May 31, 2012
1 parent 31016e5 commit d606929
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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);

Expand Down

0 comments on commit d606929

Please sign in to comment.