You are here

public function FieldByClassEnhancerTest::testClassFoundInMapping in Zircon Profile 8

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

File

vendor/symfony-cmf/routing/Tests/Enhancer/FieldByClassEnhancerTest.php, line 40

Class

FieldByClassEnhancerTest

Namespace

Symfony\Cmf\Component\Routing\Tests\Enhancer

Code

public function testClassFoundInMapping() {

  // this is the mock, thus a child class to make sure we properly check with instanceof
  $defaults = array(
    '_content' => $this->document,
  );
  $expected = array(
    '_content' => $this->document,
    '_controller' => 'cmf_content.controller:indexAction',
  );
  $this
    ->assertEquals($expected, $this->mapper
    ->enhance($defaults, $this->request));
}