summaryrefslogtreecommitdiffstats
path: root/Guard/Tests
diff options
context:
space:
mode:
authorRyan Weaver <ryan@thatsquality.com>2015-05-18 08:48:41 -0400
committerRyan Weaver <ryan@thatsquality.com>2015-09-20 19:24:21 -0400
commit4c99ad9dc194faa067af532881f2eceb3b4d846d (patch)
tree0a2b69c3617a73276ac61cac272f27ad9bc29e97 /Guard/Tests
parent5fa45716c9461a07f03428754d2bb05a0e6f2943 (diff)
downloadsymfony-security-4c99ad9dc194faa067af532881f2eceb3b4d846d.zip
symfony-security-4c99ad9dc194faa067af532881f2eceb3b4d846d.tar.gz
symfony-security-4c99ad9dc194faa067af532881f2eceb3b4d846d.tar.bz2
Updating interface method per suggestion - makes sense to me, Request is redundant
Diffstat (limited to 'Guard/Tests')
-rw-r--r--Guard/Tests/Firewall/GuardAuthenticationListenerTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Guard/Tests/Firewall/GuardAuthenticationListenerTest.php b/Guard/Tests/Firewall/GuardAuthenticationListenerTest.php
index 2de60c1..ab78292 100644
--- a/Guard/Tests/Firewall/GuardAuthenticationListenerTest.php
+++ b/Guard/Tests/Firewall/GuardAuthenticationListenerTest.php
@@ -38,7 +38,7 @@ class GuardAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
$credentials = array('username' => 'weaverryan', 'password' => 'all_your_base');
$authenticator
->expects($this->once())
- ->method('getCredentialsFromRequest')
+ ->method('getCredentials')
->with($this->equalTo($this->request))
->will($this->returnValue($credentials));
@@ -87,7 +87,7 @@ class GuardAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
$authenticator
->expects($this->once())
- ->method('getCredentialsFromRequest')
+ ->method('getCredentials')
->with($this->equalTo($this->request))
->will($this->returnValue(array('username' => 'anything_not_empty')));
@@ -130,7 +130,7 @@ class GuardAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
$authException = new AuthenticationException('Get outta here crazy user with a bad password!');
$authenticator
->expects($this->once())
- ->method('getCredentialsFromRequest')
+ ->method('getCredentials')
->will($this->throwException($authException));
// this is not called
@@ -162,11 +162,11 @@ class GuardAuthenticationListenerTest extends \PHPUnit_Framework_TestCase
$authenticatorA
->expects($this->once())
- ->method('getCredentialsFromRequest')
+ ->method('getCredentials')
->will($this->returnValue(null));
$authenticatorB
->expects($this->once())
- ->method('getCredentialsFromRequest')
+ ->method('getCredentials')
->will($this->returnValue(null));
// this is not called