public function RoutableFragmentRendererTest::testGenerateFragmentUriWithARequest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/Fragment/RoutableFragmentRendererTest.php \Symfony\Component\HttpKernel\Tests\Fragment\RoutableFragmentRendererTest::testGenerateFragmentUriWithARequest()
File
- vendor/
symfony/ http-kernel/ Tests/ Fragment/ RoutableFragmentRendererTest.php, line 47
Class
Namespace
Symfony\Component\HttpKernel\Tests\FragmentCode
public function testGenerateFragmentUriWithARequest() {
$request = Request::create('/');
$request->attributes
->set('_format', 'json');
$request
->setLocale('fr');
$controller = new ControllerReference('controller', array(), array());
$this
->assertEquals('/_fragment?_path=_format%3Djson%26_locale%3Dfr%26_controller%3Dcontroller', $this
->callGenerateFragmentUriMethod($controller, $request));
}