aboutsummaryrefslogtreecommitdiffstats
path: root/tests/controller/controller_test.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2015-05-30 13:21:22 +0200
committerNils Adermann <naderman@naderman.de>2015-05-30 13:21:22 +0200
commit073f3e6fdc5af190db85b6cdefd418af4312af9f (patch)
tree88ac078ecf60389302ac47905a1dfb4a301e611b /tests/controller/controller_test.php
parentcdd76da6a30f501064bc22bd96240eefe5a9ae23 (diff)
parentea7114e78528f95fae077568573f2b3363f9aab1 (diff)
downloadforums-073f3e6fdc5af190db85b6cdefd418af4312af9f.tar
forums-073f3e6fdc5af190db85b6cdefd418af4312af9f.tar.gz
forums-073f3e6fdc5af190db85b6cdefd418af4312af9f.tar.bz2
forums-073f3e6fdc5af190db85b6cdefd418af4312af9f.tar.xz
forums-073f3e6fdc5af190db85b6cdefd418af4312af9f.zip
Merge pull request #3592 from Nicofuma/ticket/13388
[ticket/13388] Integrate routing and di parameters resolution
Diffstat (limited to 'tests/controller/controller_test.php')
-rw-r--r--tests/controller/controller_test.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/controller/controller_test.php b/tests/controller/controller_test.php
index 5781d3ebc1..d0295d66bc 100644
--- a/tests/controller/controller_test.php
+++ b/tests/controller/controller_test.php
@@ -40,7 +40,10 @@ class phpbb_controller_controller_test extends phpbb_test_case
public function test_router_find_files()
{
- $router = new \phpbb\routing\router(new \phpbb\filesystem\filesystem(), dirname(__FILE__) . '/', 'php', PHPBB_ENVIRONMENT, $this->extension_manager);
+ $container = new phpbb_mock_container_builder();
+ $container->setParameter('core.environment', PHPBB_ENVIRONMENT);
+
+ $router = new \phpbb\routing\router($container, new \phpbb\filesystem\filesystem(), dirname(__FILE__) . '/', 'php', PHPBB_ENVIRONMENT, $this->extension_manager);
$router->find_routing_files($this->extension_manager->all_enabled(false));
$routes = $router->find(__DIR__)->get_routes();