Skip to content

Commit e04386c

Browse files
committed
[Security] Fix tests
1 parent e191750 commit e04386c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Security/Http/Tests/Firewall/UsernamePasswordFormAuthenticationListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ public function testHandleNonStringUsernameWith__toString($postOnly)
173173
new DefaultAuthenticationFailureHandler($this->getMockBuilder('Symfony\Component\HttpKernel\HttpKernelInterface')->getMock(), $httpUtils),
174174
['require_previous_session' => false, 'post_only' => $postOnly]
175175
);
176-
$event = new GetResponseEvent($this->getMockBuilder('Symfony\Component\HttpKernel\HttpKernelInterface')->getMock(), $request, HttpKernelInterface::MASTER_REQUEST);
177-
$listener->handle($event);
176+
$event = new RequestEvent($this->getMockBuilder('Symfony\Component\HttpKernel\HttpKernelInterface')->getMock(), $request, HttpKernelInterface::MASTER_REQUEST);
177+
$listener($event);
178178
}
179179

180180
/**

0 commit comments

Comments
 (0)