diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-10-19 12:11:09 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-10-19 12:11:09 +0200 |
commit | 3cc2e619d2a3293aebfdef06f6298a71648112b1 (patch) | |
tree | 2a6d341f97a87b444ef535780ee98a3d615cfbb1 /tests/controller | |
parent | 667ccbcffb51391ecafe2c9be3341ff38075044d (diff) | |
download | forums-3cc2e619d2a3293aebfdef06f6298a71648112b1.tar forums-3cc2e619d2a3293aebfdef06f6298a71648112b1.tar.gz forums-3cc2e619d2a3293aebfdef06f6298a71648112b1.tar.bz2 forums-3cc2e619d2a3293aebfdef06f6298a71648112b1.tar.xz forums-3cc2e619d2a3293aebfdef06f6298a71648112b1.zip |
[ticket/11948] Add second routing file to tests
PHPBB3-11948
Diffstat (limited to 'tests/controller')
-rw-r--r-- | tests/controller/controller_test.php | 2 | ||||
-rw-r--r-- | tests/controller/ext/foo/config/routing_2.yml | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/controller/controller_test.php b/tests/controller/controller_test.php index 10fced05a2..0e7cac05ec 100644 --- a/tests/controller/controller_test.php +++ b/tests/controller/controller_test.php @@ -37,7 +37,7 @@ class phpbb_controller_controller_test extends phpbb_test_case ->find('./tests/controller/'); // This will need to be updated if any new routes are defined - $this->assertEquals(2, sizeof($routes)); + $this->assertEquals(3, sizeof($routes)); } public function test_controller_resolver() diff --git a/tests/controller/ext/foo/config/routing_2.yml b/tests/controller/ext/foo/config/routing_2.yml new file mode 100644 index 0000000000..35fff27037 --- /dev/null +++ b/tests/controller/ext/foo/config/routing_2.yml @@ -0,0 +1,3 @@ +controller2: + pattern: /bar + defaults: { _controller: foo.controller:handle } |