[Security] Fix tests

This commit is contained in:
Maxime Steinhausser 2020-08-19 14:13:04 +02:00
parent e1917509e4
commit e04386c187
1 changed files with 2 additions and 2 deletions

View File

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