diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-05-03 14:00:47 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-05-03 14:00:47 +0200 |
commit | 8d9133a30e576d9f4315bc914b56c7be5481ebf4 (patch) | |
tree | 5bc5afef2e520f5af518f241f98303027e245c3e /tests/controller | |
parent | 0d893d65eb2823aae449a9201941798e450a9be1 (diff) | |
download | forums-8d9133a30e576d9f4315bc914b56c7be5481ebf4.tar forums-8d9133a30e576d9f4315bc914b56c7be5481ebf4.tar.gz forums-8d9133a30e576d9f4315bc914b56c7be5481ebf4.tar.bz2 forums-8d9133a30e576d9f4315bc914b56c7be5481ebf4.tar.xz forums-8d9133a30e576d9f4315bc914b56c7be5481ebf4.zip |
[ticket/11497] Use a mock object to define the root folder for the finder
PHPBB3-11497
Diffstat (limited to 'tests/controller')
-rw-r--r-- | tests/controller/helper_route_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/controller/helper_route_test.php b/tests/controller/helper_route_test.php index e40fa280da..c633df7c38 100644 --- a/tests/controller/helper_route_test.php +++ b/tests/controller/helper_route_test.php @@ -84,7 +84,7 @@ class phpbb_controller_helper_route_test extends phpbb_test_case */ public function test_helper_url_no_rewrite($route, $params, $is_amp, $session_id, $expected, $description) { - $this->helper = new \phpbb\controller\helper($this->template, $this->user, $this->config, $this->provider, $this->extension_manager,'', 'php'); + $this->helper = new phpbb_mock_controller_helper($this->template, $this->user, $this->config, $this->provider, $this->extension_manager, '', 'php', dirname(__FILE__) . '/'); $this->assertEquals($expected, $this->helper->route($route, $params, $is_amp, $session_id)); } @@ -124,7 +124,7 @@ class phpbb_controller_helper_route_test extends phpbb_test_case public function test_helper_url_with_rewrite($route, $params, $is_amp, $session_id, $expected, $description) { $this->config = new \phpbb\config\config(array('enable_mod_rewrite' => '1')); - $this->helper = new \phpbb\controller\helper($this->template, $this->user, $this->config, $this->provider, $this->extension_manager,'', 'php'); + $this->helper = new phpbb_mock_controller_helper($this->template, $this->user, $this->config, $this->provider, $this->extension_manager, '', 'php', dirname(__FILE__) . '/'); $this->assertEquals($expected, $this->helper->route($route, $params, $is_amp, $session_id)); } } |