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

Ajout tests pour meilleure couverture.

parent d67106ab
...@@ -47,6 +47,17 @@ class LdapTest extends PHPUnit_Framework_TestCase ...@@ -47,6 +47,17 @@ class LdapTest extends PHPUnit_Framework_TestCase
$this->assertInstanceOf('Zend\Authentication\Storage\StorageInterface', $this->storage->getStorage()); $this->assertInstanceOf('Zend\Authentication\Storage\StorageInterface', $this->storage->getStorage());
} }
public function testCanRetrieveDefaultMapperFromServiceManager()
{
$this->serviceManager = $this->getMock('Zend\ServiceManager\ServiceManager', array('get'));
$this->serviceManager->expects($this->once())
->method('get')
->with('ldap_people_mapper');
$this->storage = new Ldap();
$this->storage->setServiceManager($this->serviceManager);
$this->storage->getMapper();
}
public function testCanWriteToInnerStorage() public function testCanWriteToInnerStorage()
{ {
$this->storage->write($content = 'content'); $this->storage->write($content = 'content');
......
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