public function FieldByClassEnhancerTest::testClassFoundInMapping in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Symfony\Cmf\Component\Routing\Tests\EnhancerCode
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));
}