public function FieldPresenceEnhancerTest::testHasTemplate

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Enhancer/FieldPresenceEnhancerTest.php, line 26

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