public function FragmentListenerTest::testAccessDeniedWithWrongSignature

@expectedException \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/EventListener/FragmentListenerTest.php, line 73

Class

FragmentListenerTest

Namespace

Symfony\Component\HttpKernel\Tests\EventListener

Code

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