public function FieldPresenceEnhancerTest::testHasNoSource in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/Tests/Enhancer/FieldPresenceEnhancerTest.php \Symfony\Cmf\Component\Routing\Tests\Enhancer\FieldPresenceEnhancerTest::testHasNoSource()
File
- vendor/
symfony-cmf/ routing/ Tests/ Enhancer/ FieldPresenceEnhancerTest.php, line 60
Class
Namespace
Symfony\Cmf\Component\Routing\Tests\EnhancerCode
public function testHasNoSource() {
$this->mapper = new FieldPresenceEnhancer(null, '_controller', 'cmf_content.controller:indexAction');
$defaults = array(
'foo' => 'bar',
);
$expected = array(
'foo' => 'bar',
'_controller' => 'cmf_content.controller:indexAction',
);
$this
->assertEquals($expected, $this->mapper
->enhance($defaults, $this->request));
}