summaryrefslogtreecommitdiffstats
path: root/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2016-08-25 10:52:51 -0700
committerFabien Potencier <fabien.potencier@gmail.com>2016-08-25 10:52:51 -0700
commit66a4782ddd0539e1b4f2ae2b4058a04af5d21aab (patch)
tree22eedb3c88bced88bb33694aa8b3241c54c43133 /Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php
parentcecc07439a8f0d2125df9726b99746d1897ee2ea (diff)
parent4e5617e91397d1a8fe5a26bf3fef479f456e3b27 (diff)
downloadsymfony-security-66a4782ddd0539e1b4f2ae2b4058a04af5d21aab.zip
symfony-security-66a4782ddd0539e1b4f2ae2b4058a04af5d21aab.tar.gz
symfony-security-66a4782ddd0539e1b4f2ae2b4058a04af5d21aab.tar.bz2
minor #19736 [FrameworkBundle][Security] Remove useless mocks (Ener-Getick)v2.7.17
This PR was merged into the 2.7 branch. Discussion ---------- [FrameworkBundle][Security] Remove useless mocks | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Removes mocks causing issues in https://github.com/symfony/symfony/pull/19734. Commits ------- fcd3345 [FrameworkBundle][Security] Remove useless mocks
Diffstat (limited to 'Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php')
-rw-r--r--Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php b/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php
index 3acb9c2..75a6be4 100644
--- a/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php
+++ b/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php
@@ -11,6 +11,7 @@
namespace Symfony\Component\Security\Http\Tests\EntryPoint;
+use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint;
use Symfony\Component\HttpKernel\HttpKernelInterface;
@@ -19,7 +20,7 @@ class FormAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase
public function testStart()
{
$request = $this->getMock('Symfony\Component\HttpFoundation\Request', array(), array(), '', false, false);
- $response = $this->getMock('Symfony\Component\HttpFoundation\Response');
+ $response = new Response();
$httpKernel = $this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface');
$httpUtils = $this->getMock('Symfony\Component\Security\Http\HttpUtils');
@@ -39,7 +40,7 @@ class FormAuthenticationEntryPointTest extends \PHPUnit_Framework_TestCase
{
$request = $this->getMock('Symfony\Component\HttpFoundation\Request', array(), array(), '', false, false);
$subRequest = $this->getMock('Symfony\Component\HttpFoundation\Request', array(), array(), '', false, false);
- $response = new \Symfony\Component\HttpFoundation\Response('', 200);
+ $response = new Response('', 200);
$httpUtils = $this->getMock('Symfony\Component\Security\Http\HttpUtils');
$httpUtils