diff options
author | Ener-Getick <egetick@gmail.com> | 2016-08-25 14:47:32 +0200 |
---|---|---|
committer | Ener-Getick <egetick@gmail.com> | 2016-08-25 14:52:03 +0200 |
commit | 4e5617e91397d1a8fe5a26bf3fef479f456e3b27 (patch) | |
tree | 09cd803a17e04cd19ba49e3af3ca701bb48fa017 /Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php | |
parent | b6252ab5498bdf1583d06e9da39b444f552d2975 (diff) | |
download | symfony-security-4e5617e91397d1a8fe5a26bf3fef479f456e3b27.zip symfony-security-4e5617e91397d1a8fe5a26bf3fef479f456e3b27.tar.gz symfony-security-4e5617e91397d1a8fe5a26bf3fef479f456e3b27.tar.bz2 |
[FrameworkBundle][Security] Remove useless mocks
Diffstat (limited to 'Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php')
-rw-r--r-- | Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php b/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php index 4d1847d..ae9f02b 100644 --- a/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php +++ b/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Security\Http\Tests\Authentication; +use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler; class DefaultAuthenticationSuccessHandlerTest extends \PHPUnit_Framework_TestCase @@ -157,8 +158,7 @@ class DefaultAuthenticationSuccessHandlerTest extends \PHPUnit_Framework_TestCas private function expectRedirectResponse($path) { - $response = $this->getMock('Symfony\Component\HttpFoundation\Response'); - + $response = new Response(); $this->httpUtils->expects($this->once()) ->method('createRedirectResponse') ->with($this->request, $path) |