aboutsummaryrefslogtreecommitdiffstats
path: root/tests/controller
diff options
context:
space:
mode:
Diffstat (limited to 'tests/controller')
-rw-r--r--tests/controller/controller_test.php2
-rw-r--r--tests/controller/ext/foo/config/routing_2.yml3
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 }