public function FieldMapEnhancerTest::setUp

File

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

Class

FieldMapEnhancerTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Mapper

Code

public function setUp() {
  $this->request = Request::create('/test');
  $mapping = array(
    'static_pages' => 'cmf_content.controller:indexAction',
  );
  $this->enhancer = new FieldMapEnhancer('type', '_controller', $mapping);
}