public function FieldMapEnhancerTest::testFieldFoundInMapping

File

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

Class

FieldMapEnhancerTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Mapper

Code

public function testFieldFoundInMapping() {
  $defaults = array(
    'type' => 'static_pages',
  );
  $expected = array(
    'type' => 'static_pages',
    '_controller' => 'cmf_content.controller:indexAction',
  );
  $this
    ->assertEquals($expected, $this->enhancer
    ->enhance($defaults, $this->request));
}