public function RouteContentEnhancerTest::setUp

File

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

Class

RouteContentEnhancerTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Enhancer

Code

public function setUp() {
  $this->document = $this
    ->buildMock('Symfony\\Cmf\\Component\\Routing\\Tests\\Enhancer\\RouteObject', array(
    'getRouteContent',
    'getRouteDefaults',
    'getUrl',
  ));
  $this->mapper = new RouteContentEnhancer(RouteObjectInterface::ROUTE_OBJECT, '_content');
  $this->request = Request::create('/test');
}