public function FragmentListenerTest::testAccessDeniedWithNonSafeMethods in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/EventListener/FragmentListenerTest.php \Symfony\Component\HttpKernel\Tests\EventListener\FragmentListenerTest::testAccessDeniedWithNonSafeMethods()
@expectedException \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
File
- vendor/
symfony/ http-kernel/ Tests/ EventListener/ FragmentListenerTest.php, line 55
Class
Namespace
Symfony\Component\HttpKernel\Tests\EventListenerCode
public function testAccessDeniedWithNonSafeMethods() {
$request = Request::create('http://example.com/_fragment', 'POST');
$listener = new FragmentListener(new UriSigner('foo'));
$event = $this
->createGetResponseEvent($request);
$listener
->onKernelRequest($event);
}