[Security] Fix tests
authorMaxime Steinhausser <maxime.steinhausser@elao.com>
Wed, 19 Aug 2020 12:13:04 +0000 (14:13 +0200)
committerMaxime Steinhausser <maxime.steinhausser@elao.com>
Wed, 19 Aug 2020 12:13:04 +0000 (14:13 +0200)
src/Symfony/Component/Security/Http/Tests/Firewall/UsernamePasswordFormAuthenticationListenerTest.php

index ee2f75d..2dbadea 100644 (file)
@@ -173,8 +173,8 @@ class UsernamePasswordFormAuthenticationListenerTest extends TestCase
             new DefaultAuthenticationFailureHandler($this->getMockBuilder('Symfony\Component\HttpKernel\HttpKernelInterface')->getMock(), $httpUtils),
             ['require_previous_session' => false, 'post_only' => $postOnly]
         );
-        $event = new GetResponseEvent($this->getMockBuilder('Symfony\Component\HttpKernel\HttpKernelInterface')->getMock(), $request, HttpKernelInterface::MASTER_REQUEST);
-        $listener->handle($event);
+        $event = new RequestEvent($this->getMockBuilder('Symfony\Component\HttpKernel\HttpKernelInterface')->getMock(), $request, HttpKernelInterface::MASTER_REQUEST);
+        $listener($event);
     }
 
     /**