You are here

public function RouteContentEnhancerTest::testNoContent in Zircon Profile 8.0

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

File

vendor/symfony-cmf/routing/Tests/Enhancer/RouteContentEnhancerTest.php, line 64

Class

RouteContentEnhancerTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Enhancer

Code

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