public function RouteContentEnhancerTest::testContent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/Tests/Enhancer/RouteContentEnhancerTest.php \Symfony\Cmf\Component\Routing\Tests\Enhancer\RouteContentEnhancerTest::testContent()
File
- vendor/
symfony-cmf/ routing/ Tests/ Enhancer/ RouteContentEnhancerTest.php, line 40
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\EnhancerCode
public function testContent() {
$targetDocument = new TargetDocument();
$this->document
->expects($this
->once())
->method('getContent')
->will($this
->returnValue($targetDocument));
$defaults = array(
RouteObjectInterface::ROUTE_OBJECT => $this->document,
);
$expected = array(
RouteObjectInterface::ROUTE_OBJECT => $this->document,
'_content' => $targetDocument,
);
$this
->assertEquals($expected, $this->mapper
->enhance($defaults, $this->request));
}