Skip to content

Commit

Permalink
Added additional unit test for UserManager::getByIdRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi58 committed Oct 28, 2016
1 parent e98acf6 commit 291f62a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/phpunit/Inachis/CoreBundle/Entity/UserManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,11 @@ public function testGetByUsername()
'8c56567b93f4183dca478c46aeb114b1c0c1efde4fd32da44ac1');
$this->assertSame($this->user, $this->manager->getByUsername('test'));
}

public function testGetByIdRaw()
{
$this->user = $this->manager->create($this->properties);
$this->repository->shouldReceive('find')->with($this->user->getId())->andReturn($this->user);
$this->assertSame($this->user, $this->manager->getByIdRaw($this->user->getId()));
}
}

0 comments on commit 291f62a

Please sign in to comment.