summaryrefslogtreecommitdiffstats
path: root/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php
diff options
context:
space:
mode:
authorEner-Getick <egetick@gmail.com>2016-08-25 14:47:32 +0200
committerEner-Getick <egetick@gmail.com>2016-08-25 14:52:03 +0200
commit4e5617e91397d1a8fe5a26bf3fef479f456e3b27 (patch)
tree09cd803a17e04cd19ba49e3af3ca701bb48fa017 /Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php
parentb6252ab5498bdf1583d06e9da39b444f552d2975 (diff)
downloadsymfony-security-4e5617e91397d1a8fe5a26bf3fef479f456e3b27.zip
symfony-security-4e5617e91397d1a8fe5a26bf3fef479f456e3b27.tar.gz
symfony-security-4e5617e91397d1a8fe5a26bf3fef479f456e3b27.tar.bz2
[FrameworkBundle][Security] Remove useless mocks
Diffstat (limited to 'Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php')
-rw-r--r--Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php b/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php
index 6e79b07..8a31886 100644
--- a/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php
+++ b/Http/Tests/Authentication/SimpleAuthenticationHandlerTest.php
@@ -11,6 +11,7 @@
namespace Symfony\Component\Security\Http\Tests;
+use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Authentication\SimpleAuthenticatorInterface;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface;
@@ -41,7 +42,7 @@ class SimpleAuthenticationHandlerTest extends \PHPUnit_Framework_TestCase
// No methods are invoked on the exception; we just assert on its class
$this->authenticationException = new AuthenticationException();
- $this->response = $this->getMock('Symfony\Component\HttpFoundation\Response');
+ $this->response = new Response();
}
public function testOnAuthenticationSuccessFallsBackToDefaultHandlerIfSimpleIsNotASuccessHandler()