diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-01-16 23:00:38 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-01-16 23:00:38 +0100 |
commit | 21f9153c0b2994a0c1ba3f498a1805de5b6990fa (patch) | |
tree | 27efccd4e22871730702d6031f05e5bda575302f /Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php | |
parent | 5a21091f4faa5965beacc32fe3379f8a09ada0c0 (diff) | |
parent | e26eec7c5599a8ab6fd2b5c448e97970f2db3cf9 (diff) | |
download | symfony-security-21f9153c0b2994a0c1ba3f498a1805de5b6990fa.zip symfony-security-21f9153c0b2994a0c1ba3f498a1805de5b6990fa.tar.gz symfony-security-21f9153c0b2994a0c1ba3f498a1805de5b6990fa.tar.bz2 |
Merge branch '2.7'
* 2.7:
[2.7] Added deprecated in debug command
[FrameworkBundle] remove usage of deprecated Definition::setFactoryClass(), Definition::setFactoryService() and Definition::setFactoryMethod() methods.
fixed some deprecated notices
[Validator] fixed some legacy tests
[Validator] fixed remaining notice
[DX] Attempt to improve logging messages with parameters
Diffstat (limited to 'Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php')
-rw-r--r-- | Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php b/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php index e065660..fd06e23 100644 --- a/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php +++ b/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php @@ -105,7 +105,10 @@ class DefaultAuthenticationFailureHandlerTest extends \PHPUnit_Framework_TestCas public function testRedirectIsLogged() { - $this->logger->expects($this->once())->method('debug')->with('Redirecting to /login'); + $this->logger + ->expects($this->once()) + ->method('debug') + ->with('Authentication failure, redirect triggered.', array('failure_path' => '/login')); $handler = new DefaultAuthenticationFailureHandler($this->httpKernel, $this->httpUtils, array(), $this->logger); $handler->onAuthenticationFailure($this->request, $this->exception); @@ -119,7 +122,10 @@ class DefaultAuthenticationFailureHandlerTest extends \PHPUnit_Framework_TestCas ->method('createRequest')->with($this->request, '/login') ->will($this->returnValue($this->getRequest())); - $this->logger->expects($this->once())->method('debug')->with('Forwarding to /login'); + $this->logger + ->expects($this->once()) + ->method('debug') + ->with('Authentication failure, forward triggered.', array('failure_path' => '/login')); $handler = new DefaultAuthenticationFailureHandler($this->httpKernel, $this->httpUtils, $options, $this->logger); $handler->onAuthenticationFailure($this->request, $this->exception); |