public function RouteContentEnhancerTest::testNoContent

File

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

Class

RouteContentEnhancerTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Enhancer

Code

public function testNoContent() {
  $this->document
    ->expects($this
    ->once())
    ->method('getRouteContent')
    ->will($this
    ->returnValue(null));
  $defaults = array(
    RouteObjectInterface::ROUTE_OBJECT => $this->document,
  );
  $this
    ->assertEquals($defaults, $this->mapper
    ->enhance($defaults, $this->request));
}