Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
d1fd9554
Commit
d1fd9554
authored
Jul 10, 2013
by
Bertrand Gauthier
Browse files
Ajout tests pour meilleure couverture.
parent
d67106ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/UnicaenAuthTest/Authentication/Storage/LdapTest.php
View file @
d1fd9554
...
...
@@ -47,6 +47,17 @@ class LdapTest extends PHPUnit_Framework_TestCase
$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
()
{
$this
->
storage
->
write
(
$content
=
'content'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment