public function HIncludeFragmentRendererTest::testRenderWithControllerAndSigner

File

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

Class

HIncludeFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Fragment\Tests\FragmentRenderer

Code

public function testRenderWithControllerAndSigner() {
  $strategy = new HIncludeFragmentRenderer(null, new UriSigner('foo'));
  $this
    ->assertEquals('<hx:include src="http://localhost/_fragment?_path=_format%3Dhtml%26_controller%3Dmain_controller&amp;_hash=VI25qJj8J0qveB3bGKPhsJtexKg%3D"></hx:include>', $strategy
    ->render(new ControllerReference('main_controller', array(), array()), Request::create('/'))
    ->getContent());
}