You are here

public function FieldByClassEnhancerTest::setUp in Zircon Profile 8

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

File

vendor/symfony-cmf/routing/Tests/Enhancer/FieldByClassEnhancerTest.php, line 28

Class

FieldByClassEnhancerTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Enhancer

Code

public function setUp() {
  $this->document = $this
    ->buildMock('Symfony\\Cmf\\Component\\Routing\\Tests\\Enhancer\\RouteObject');
  $mapping = array(
    'Symfony\\Cmf\\Component\\Routing\\Tests\\Enhancer\\RouteObject' => 'cmf_content.controller:indexAction',
  );
  $this->mapper = new FieldByClassEnhancer('_content', '_controller', $mapping);
  $this->request = Request::create('/test');
}