aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pagination
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-09-14 21:18:20 +0200
committerTristan Darricau <github@nicofuma.fr>2014-11-20 16:03:48 +0100
commita5bfc76a73a213a388126d0f697ba64f27a4b00d (patch)
tree2608ef47b98a746c536512ce0b919c27796ffd2c /tests/pagination
parent3b1c611566399c1e06bd737ec283b141e3c410f5 (diff)
downloadforums-a5bfc76a73a213a388126d0f697ba64f27a4b00d.tar
forums-a5bfc76a73a213a388126d0f697ba64f27a4b00d.tar.gz
forums-a5bfc76a73a213a388126d0f697ba64f27a4b00d.tar.bz2
forums-a5bfc76a73a213a388126d0f697ba64f27a4b00d.tar.xz
forums-a5bfc76a73a213a388126d0f697ba64f27a4b00d.zip
[ticket/13063] Introduces a new \phpbb\routing\router class
PHPBB3-13063
Diffstat (limited to 'tests/pagination')
-rw-r--r--tests/pagination/pagination_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/pagination/pagination_test.php b/tests/pagination/pagination_test.php
index 494c667198..de939e280d 100644
--- a/tests/pagination/pagination_test.php
+++ b/tests/pagination/pagination_test.php
@@ -44,9 +44,9 @@ class phpbb_pagination_pagination_test extends phpbb_template_template_test_case
$finder->set_extensions(array_keys($manager->all_enabled()));
$this->config = new \phpbb\config\config(array('enable_mod_rewrite' => '1'));
- $provider = new \phpbb\controller\provider();
- $provider->find_routing_files($finder);
- $provider->find(dirname(__FILE__) . '/');
+ $router = new phpbb_mock_router($manager, dirname(__FILE__) . '/', 'php');
+ $router->find_routing_files($finder);
+ $router->find(dirname(__FILE__) . '/');
$request = new phpbb_mock_request();
$request->overwrite('SCRIPT_NAME', '/app.php', \phpbb\request\request_interface::SERVER);
@@ -57,7 +57,7 @@ class phpbb_pagination_pagination_test extends phpbb_template_template_test_case
$request
);
- $this->helper = new phpbb_mock_controller_helper($this->template, $this->user, $this->config, $provider, $manager, $symfony_request, $request, $filesystem, '', 'php', dirname(__FILE__) . '/');
+ $this->helper = new phpbb_mock_controller_helper($this->template, $this->user, $this->config, $router, $manager, $symfony_request, $request, $filesystem, '', 'php', dirname(__FILE__) . '/');
$this->pagination = new \phpbb\pagination($this->template, $this->user, $this->helper, $phpbb_dispatcher);
}