diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-09-05 16:33:57 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-11-20 20:15:45 +0100 |
commit | 014eed385bf761d9e3f0992835f44f58bf055afd (patch) | |
tree | 7c1e824a9346efd0dbe05c732926ae9fd006cd0b /tests/controller/controller_test.php | |
parent | 7cd0fd83b8047f40edfb69a427b14997801ef25b (diff) | |
download | forums-014eed385bf761d9e3f0992835f44f58bf055afd.tar forums-014eed385bf761d9e3f0992835f44f58bf055afd.tar.gz forums-014eed385bf761d9e3f0992835f44f58bf055afd.tar.bz2 forums-014eed385bf761d9e3f0992835f44f58bf055afd.tar.xz forums-014eed385bf761d9e3f0992835f44f58bf055afd.zip |
[ticket/12620] Add support of the environments for the ext routing files
PHPBB3-12620
Diffstat (limited to 'tests/controller/controller_test.php')
-rw-r--r-- | tests/controller/controller_test.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/controller/controller_test.php b/tests/controller/controller_test.php index cd90dda751..637e9685e6 100644 --- a/tests/controller/controller_test.php +++ b/tests/controller/controller_test.php @@ -30,6 +30,11 @@ class phpbb_controller_controller_test extends phpbb_test_case 'ext_active' => '1', 'ext_path' => 'ext/vendor2/foo/', ), + 'vendor2/bar' => array( + 'ext_name' => 'vendor2/bar', + 'ext_active' => '1', + 'ext_path' => 'ext/vendor2/bar/', + ), )); } @@ -49,6 +54,9 @@ class phpbb_controller_controller_test extends phpbb_test_case $this->assertInstanceOf('Symfony\Component\Routing\Route', $routes->get('controller2')); $this->assertEquals('/foo/bar', $routes->get('controller2')->getPath()); + $this->assertInstanceOf('Symfony\Component\Routing\Route', $routes->get('controller3')); + $this->assertEquals('/bar', $routes->get('controller3')->getPath()); + $this->assertNull($routes->get('controller_noroute')); } |