You are here

public function FragmentListenerTest::testAccessDeniedWithNonSafeMethods in Zircon Profile 8

Same name and namespace in other branches
  1. 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

FragmentListenerTest

Namespace

Symfony\Component\HttpKernel\Tests\EventListener

Code

public function testAccessDeniedWithNonSafeMethods() {
  $request = Request::create('http://example.com/_fragment', 'POST');
  $listener = new FragmentListener(new UriSigner('foo'));
  $event = $this
    ->createGetResponseEvent($request);
  $listener
    ->onKernelRequest($event);
}