aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pagination
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-06 17:50:46 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-10 11:47:39 +0200
commitd45c681b40cf0415ce49b2cd7f3f1083e84b367c (patch)
treece42a1665c9ffa1c519964ad0df9bf6d502c1afa /tests/pagination
parentc20653dfbe552b53fa3281ff8f2a9214fc8a26a9 (diff)
downloadforums-d45c681b40cf0415ce49b2cd7f3f1083e84b367c.tar
forums-d45c681b40cf0415ce49b2cd7f3f1083e84b367c.tar.gz
forums-d45c681b40cf0415ce49b2cd7f3f1083e84b367c.tar.bz2
forums-d45c681b40cf0415ce49b2cd7f3f1083e84b367c.tar.xz
forums-d45c681b40cf0415ce49b2cd7f3f1083e84b367c.zip
[ticket/12508] Fix usages of the finder
PHPBB3-12508
Diffstat (limited to 'tests/pagination')
-rw-r--r--tests/pagination/pagination_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pagination/pagination_test.php b/tests/pagination/pagination_test.php
index e233264cc6..4d6fbac20e 100644
--- a/tests/pagination/pagination_test.php
+++ b/tests/pagination/pagination_test.php
@@ -35,16 +35,16 @@ class phpbb_pagination_pagination_test extends phpbb_template_template_test_case
->will($this->returnCallback(array($this, 'return_callback_implode')));
$manager = new phpbb_mock_extension_manager(dirname(__FILE__) . '/', array());
- $this->finder = new \phpbb\extension\finder(
- $manager,
+ $finder = new \phpbb\extension\finder(
new \phpbb\filesystem(),
dirname(__FILE__) . '/',
new phpbb_mock_cache()
);
+ $finder->set_extensions($manager->all_enabled());
$this->config = new \phpbb\config\config(array('enable_mod_rewrite' => '1'));
$provider = new \phpbb\controller\provider();
- $provider->find_routing_files($this->finder);
+ $provider->find_routing_files($finder);
$provider->find(dirname(__FILE__) . '/');
$this->helper = new phpbb_mock_controller_helper($this->template, $this->user, $this->config, $provider, $manager, '', 'php', dirname(__FILE__) . '/');
$this->pagination = new \phpbb\pagination($this->template, $this->user, $this->helper);