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
5c1d73d6
Commit
5c1d73d6
authored
Jul 10, 2013
by
Bertrand Gauthier
Browse files
Ajout tests pour meilleure couverture.
parent
c78b2b4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/UnicaenAuthTest/Authentication/Adapter/DbTest.php
View file @
5c1d73d6
...
...
@@ -91,4 +91,16 @@ class DbTest extends PHPUnit_Framework_TestCase
$result
=
$this
->
adapter
->
authenticate
(
$event
);
$this
->
assertFalse
(
$result
);
}
public
function
testAuthenticateReturnsParentMethodResult
()
{
$request
=
new
Request
();
$request
->
setPost
(
new
Parameters
(
array
(
'identity'
=>
'bob'
,
'credential'
=>
"xxxxx"
)));
$event
=
new
AdapterChainEvent
();
$event
->
setRequest
(
$request
);
$result
=
$this
->
adapter
->
authenticate
(
$event
);
$this
->
assertFalse
(
$result
);
}
}
\ No newline at end of file
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