Skip to content
Snippets Groups Projects
Commit a8dad842 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Ajout tests pour meilleure couverture.

parent 0c905a79
Branches
Tags
No related merge requests found
......@@ -57,6 +57,13 @@ class UserTest extends PHPUnit_Framework_TestCase
$this->service->setServiceManager($serviceManager);
}
public function testCanSetLdapPeopleMapper()
{
$mapper = new \UnicaenApp\Mapper\Ldap\People();
$this->service->setLdapPeopleMapper($mapper);
$this->assertSame($mapper, $this->service->getLdapPeopleMapper());
}
public function testCanRetrieveDefaultLdapPeopleMapperFromServiceManager()
{
$this->assertInstanceOf('UnicaenApp\Mapper\Ldap\People', $this->service->getLdapPeopleMapper());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment