diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-10-07 23:09:13 +0200 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-10-08 14:15:44 +0200 |
commit | 403c647b9e84640977ca0f98d21d15ceb4957bdb (patch) | |
tree | 43ef25beb7444ee2f49f5a814f51b0f268b7bb2e /tests/pagination/pagination_test.php | |
parent | 82743c792287a1efe906c231df7d22dadc8bedcd (diff) | |
download | forums-403c647b9e84640977ca0f98d21d15ceb4957bdb.tar forums-403c647b9e84640977ca0f98d21d15ceb4957bdb.tar.gz forums-403c647b9e84640977ca0f98d21d15ceb4957bdb.tar.bz2 forums-403c647b9e84640977ca0f98d21d15ceb4957bdb.tar.xz forums-403c647b9e84640977ca0f98d21d15ceb4957bdb.zip |
[ticket/14220] Move route loading to services
PHPBB3-14220
Diffstat (limited to 'tests/pagination/pagination_test.php')
-rw-r--r-- | tests/pagination/pagination_test.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/pagination/pagination_test.php b/tests/pagination/pagination_test.php index 0607098d93..6a3b46cdae 100644 --- a/tests/pagination/pagination_test.php +++ b/tests/pagination/pagination_test.php @@ -41,9 +41,12 @@ class phpbb_pagination_pagination_test extends phpbb_template_template_test_case $manager = new phpbb_mock_extension_manager(dirname(__FILE__) . '/', array()); $this->config = new \phpbb\config\config(array('enable_mod_rewrite' => '1')); - $router = new phpbb_mock_router(new phpbb_mock_container_builder(), $filesystem, dirname(__FILE__) . '/', 'php', PHPBB_ENVIRONMENT, $manager); - $router->find_routing_files($manager->all_enabled(false)); - $router->find(dirname(__FILE__) . '/'); + + $loader = new \Symfony\Component\Routing\Loader\YamlFileLoader( + new \phpbb\routing\file_locator($filesystem, dirname(__FILE__) . '/') + ); + $resources_locator = new \phpbb\routing\resources_locator\default_resources_locator(dirname(__FILE__) . '/', PHPBB_ENVIRONMENT, $manager); + $router = new phpbb_mock_router(new phpbb_mock_container_builder(), $resources_locator, $loader, dirname(__FILE__) . '/', 'php', PHPBB_ENVIRONMENT); $request = new phpbb_mock_request(); $request->overwrite('SCRIPT_NAME', '/app.php', \phpbb\request\request_interface::SERVER); |