summaryrefslogtreecommitdiffstats
path: root/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-10-01 08:20:17 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2015-10-01 08:20:17 +0200
commitc2d213d3f64a1c7cfaa226626687cce57cb64ba8 (patch)
treef4cfde886cc3db68648e6cae842416be912b71c9 /Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php
parent6941fe98591a35625c634df0aafcc481510fdf7d (diff)
downloadsymfony-security-c2d213d3f64a1c7cfaa226626687cce57cb64ba8.zip
symfony-security-c2d213d3f64a1c7cfaa226626687cce57cb64ba8.tar.gz
symfony-security-c2d213d3f64a1c7cfaa226626687cce57cb64ba8.tar.bz2
[Security] made tests work for 2.8 and 3.0
Diffstat (limited to 'Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php')
-rw-r--r--Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php23
1 files changed, 9 insertions, 14 deletions
diff --git a/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php b/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php
index 2ed8872..8f854c8 100644
--- a/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php
+++ b/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php
@@ -17,17 +17,12 @@ use Symfony\Component\HttpKernel\HttpKernelInterface;
class DefaultAuthenticationFailureHandlerTest extends \PHPUnit_Framework_TestCase
{
- private $httpKernel = null;
-
- private $httpUtils = null;
-
- private $logger = null;
-
- private $request = null;
-
- private $session = null;
-
- private $exception = null;
+ private $httpKernel;
+ private $httpUtils;
+ private $logger;
+ private $request;
+ private $session;
+ private $exception;
protected function setUp()
{
@@ -145,7 +140,7 @@ class DefaultAuthenticationFailureHandlerTest extends \PHPUnit_Framework_TestCas
public function testFailurePathCanBeOverwrittenWithRequest()
{
$this->request->expects($this->once())
- ->method('get')->with('_failure_path', null, false)
+ ->method('get')->with('_failure_path')
->will($this->returnValue('/auth/login'));
$this->httpUtils->expects($this->once())
@@ -158,7 +153,7 @@ class DefaultAuthenticationFailureHandlerTest extends \PHPUnit_Framework_TestCas
public function testFailurePathCanBeOverwrittenWithNestedAttributeInRequest()
{
$this->request->expects($this->once())
- ->method('get')->with('_failure_path', null, false)
+ ->method('get')->with('_failure_path')
->will($this->returnValue(array('value' => '/auth/login')));
$this->httpUtils->expects($this->once())
@@ -173,7 +168,7 @@ class DefaultAuthenticationFailureHandlerTest extends \PHPUnit_Framework_TestCas
$options = array('failure_path_parameter' => '_my_failure_path');
$this->request->expects($this->once())
- ->method('get')->with('_my_failure_path', null, false)
+ ->method('get')->with('_my_failure_path')
->will($this->returnValue('/auth/login'));
$this->httpUtils->expects($this->once())