public function FieldPresenceEnhancerTest::testHasTemplate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/Tests/Enhancer/FieldPresenceEnhancerTest.php \Symfony\Cmf\Component\Routing\Tests\Enhancer\FieldPresenceEnhancerTest::testHasTemplate()
File
- vendor/
symfony-cmf/ routing/ Tests/ Enhancer/ FieldPresenceEnhancerTest.php, line 35
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\EnhancerCode
public function testHasTemplate() {
$defaults = array(
'_template' => 'Bundle:Topic:template.html.twig',
);
$expected = array(
'_template' => 'Bundle:Topic:template.html.twig',
'_controller' => 'cmf_content.controller:indexAction',
);
$this
->assertEquals($expected, $this->mapper
->enhance($defaults, $this->request));
}