public function RoutableFragmentRendererTest::testGenerateFragmentUriWithARequest

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Fragment/RoutableFragmentRendererTest.php, line 39

Class

RoutableFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Fragment\Tests\FragmentRenderer

Code

public function testGenerateFragmentUriWithARequest() {
  $request = Request::create('/');
  $request->attributes
    ->set('_format', 'json');
  $controller = new ControllerReference('controller', array(), array());
  $this
    ->assertEquals('http://localhost/_fragment?_path=_format%3Djson%26_controller%3Dcontroller', $this
    ->getRenderer()
    ->doGenerateFragmentUri($controller, $request));
}