8000 [Security] made tests work for 2.8 and 3.0 by fabpot · Pull Request #16037 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Security] made tests work for 2.8 and 3.0 #16037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,12 @@

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()
{
Expand Down Expand Up @@ -145,7 +140,7 @@ public function testFailurePathCanBeOverwritten()
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())
Expand All @@ -158,7 +153,7 @@ public function testFailurePathCanBeOverwrittenWithRequest()
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())
Expand All @@ -173,7 +168,7 @@ public function testFailurePathParameterCanBeOverwritten()
$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())
Expand Down
0