[ticket/12480] Add subfolder/config/routing.yml which should not be found

PHPBB3-12480
This commit is contained in:
Joas Schilling 2014-05-02 22:48:28 +02:00
parent 10b23612e3
commit a470b6c519
2 changed files with 5 additions and 0 deletions

View file

@ -43,6 +43,8 @@ class phpbb_controller_controller_test extends phpbb_test_case
$this->assertInstanceOf('Symfony\Component\Routing\Route', $routes->get('controller2')); $this->assertInstanceOf('Symfony\Component\Routing\Route', $routes->get('controller2'));
$this->assertEquals('/foo/bar', $routes->get('controller2')->getPath()); $this->assertEquals('/foo/bar', $routes->get('controller2')->getPath());
$this->assertNull($routes->get('controller_noroute'));
} }
public function test_controller_resolver() public function test_controller_resolver()

View file

@ -0,0 +1,3 @@
controller_noroute:
pattern: /donotfindthis
defaults: { _controller: foo.controller:handle }