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
0c905a79
Commit
0c905a79
authored
Jul 10, 2013
by
Bertrand Gauthier
Browse files
Ajout tests pour meilleure couverture.
parent
5c1d73d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/UnicaenAuthTest/Authentication/Adapter/LdapTest.php
View file @
0c905a79
...
@@ -84,6 +84,14 @@ class LdapTest extends PHPUnit_Framework_TestCase
...
@@ -84,6 +84,14 @@ class LdapTest extends PHPUnit_Framework_TestCase
$this
->
assertEquals
(
array_combine
(
$connectionNames
,
$connectionParams
),
$adapter
->
getOptions
());
$this
->
assertEquals
(
array_combine
(
$connectionNames
,
$connectionParams
),
$adapter
->
getOptions
());
}
}
public
function
testAuthenticatingReturnsNullIfAlreadyStatisfied
()
{
$event
=
new
AdapterChainEvent
();
$this
->
adapter
->
setSatisfied
();
$this
->
assertNull
(
$this
->
adapter
->
authenticate
(
$event
));
$this
->
assertEquals
(
$event
->
getCode
(),
Result
::
SUCCESS
);
}
public
function
testUsurpationWithAllowedUsernameAndSuccessfulAuthentication
()
public
function
testUsurpationWithAllowedUsernameAndSuccessfulAuthentication
()
{
{
$this
->
authModuleOptions
->
setUsurpationAllowedUsernames
(
array
(
'usurpateur'
));
$this
->
authModuleOptions
->
setUsurpationAllowedUsernames
(
array
(
'usurpateur'
));
...
...
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