Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 206c610

Browse filesBrowse files
committed
[Security] simplified some unit tests
1 parent 26b5cf3 commit 206c610
Copy full SHA for 206c610

File tree

Expand file treeCollapse file tree

1 file changed

+1
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-7
lines changed

‎src/Symfony/Component/Security/Tests/Http/Firewall/ExceptionListenerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Tests/Http/Firewall/ExceptionListenerTest.php
+1-7Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,7 @@ private function createEvent(\Exception $exception, $kernel = null)
166166
$kernel = $this->getMock('Symfony\Component\HttpKernel\HttpKernelInterface');
167167
}
168168

169-
$event = new GetResponseForExceptionEvent($kernel, Request::create('/'), HttpKernelInterface::MASTER_REQUEST, $exception);
170-
171-
// FIXME: to be removed in 2.4
172-
$dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
173-
$event->setDispatcher($dispatcher);
174-
175-
return $event;
169+
return new GetResponseForExceptionEvent($kernel, Request::create('/'), HttpKernelInterface::MASTER_REQUEST, $exception);
176170
}
177171

178172
private function createExceptionListener(SecurityContextInterface $context = null, AuthenticationTrustResolverInterface $trustResolver = null, HttpUtils $httpUtils = null, AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, AccessDeniedHandlerInterface $accessDeniedHandler = null)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.