You are here

public function FieldMapEnhancerTest::setUp in Zircon Profile 8

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

File

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

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