From 3cc2e619d2a3293aebfdef06f6298a71648112b1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 19 Oct 2013 12:11:09 +0200 Subject: [PATCH] [ticket/11948] Add second routing file to tests PHPBB3-11948 --- tests/controller/controller_test.php | 2 +- tests/controller/ext/foo/config/routing_2.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 tests/controller/ext/foo/config/routing_2.yml 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 }