You are here

public function FieldMapEnhancerTest::testFieldFoundInMapping in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/Tests/Enhancer/FieldMapEnhancerTest.php \Symfony\Cmf\Component\Routing\Tests\Mapper\FieldMapEnhancerTest::testFieldFoundInMapping()

File

vendor/symfony-cmf/routing/Tests/Enhancer/FieldMapEnhancerTest.php, line 39

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