public function FragmentListenerTest::testOnlyTriggeredOnFragmentRoute 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::testOnlyTriggeredOnFragmentRoute()
File
- vendor/
symfony/ http-kernel/ Tests/ EventListener/ FragmentListenerTest.php, line 22
Class
Namespace
Symfony\Component\HttpKernel\Tests\EventListenerCode
public function testOnlyTriggeredOnFragmentRoute() {
$request = Request::create('http://example.com/foo?_path=foo%3Dbar%26_controller%3Dfoo');
$listener = new FragmentListener(new UriSigner('foo'));
$event = $this
->createGetResponseEvent($request);
$expected = $request->attributes
->all();
$listener
->onKernelRequest($event);
$this
->assertEquals($expected, $request->attributes
->all());
$this
->assertTrue($request->query
->has('_path'));
}