You are here

public function FieldPresenceEnhancerTest::testHasTemplate in Zircon Profile 8

Same name and namespace in other branches
  1. 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

FieldPresenceEnhancerTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Enhancer

Code

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));
}