public function FieldByClassEnhancerTest::testClassFoundInMapping

File

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

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));
}