You are here

public function RouteContentEnhancerTest::testFieldAlreadyThere 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::testFieldAlreadyThere()

File

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

Class

RouteContentEnhancerTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Enhancer

Code

public function testFieldAlreadyThere() {
  $this->document
    ->expects($this
    ->never())
    ->method('getContent');
  $defaults = array(
    RouteObjectInterface::ROUTE_OBJECT => $this->document,
    '_content' => 'foo',
  );
  $this
    ->assertEquals($defaults, $this->mapper
    ->enhance($defaults, $this->request));
}