Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
a8dad842
Commit
a8dad842
authored
Jul 10, 2013
by
Bertrand Gauthier
Browse files
Ajout tests pour meilleure couverture.
parent
0c905a79
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/UnicaenAuthTest/Service/UserTest.php
View file @
a8dad842
...
...
@@ -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
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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