Commit a8dad842 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Ajout tests pour meilleure couverture.

parent 0c905a79
......@@ -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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment