Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Christophe Turbout
auth
Commits
b274c849
Commit
b274c849
authored
Jul 04, 2013
by
Bertrand Gauthier
Browse files
Ajout test du code de retour de authenticate().
parent
bea3710e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/UnicaenAuthTest/Authentication/Adapter/CasTest.php
View file @
b274c849
...
...
@@ -7,6 +7,7 @@ use UnicaenApp\Exception;
use
UnicaenAuth\Authentication\Adapter\Cas
;
use
Zend\EventManager\EventManager
;
use
ZfcUser\Authentication\Adapter\AdapterChainEvent
;
use
Zend\Authentication\Result
;
define
(
'__VENDOR_DIR__'
,
__DIR__
.
'/../../../../vendor'
);
...
...
@@ -132,8 +133,9 @@ EOS;
$this
->
assertEquals
(
array
(
'is_satisfied'
=>
true
,
'identity'
=>
$username
),
$this
->
adapter
->
getStorage
()
->
read
());
$this
->
assertEquals
(
"userAuthenticated"
,
$event
->
getName
());
$this
->
assertEquals
(
Result
::
SUCCESS
,
$event
->
getCode
());
$this
->
assertEquals
(
$username
,
$event
->
getIdentity
());
$this
->
assertTrue
(
$event
->
propagationIsStopped
());
$this
->
assertEquals
(
$username
,
$event
->
getParam
(
'identity'
));
}
public
function
testLogoutReturnsNullIfNoCasConfigSpecified
()
...
...
Write
Preview
Supports
Markdown
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