aboutsummaryrefslogtreecommitdiffstats
path: root/tests/controller
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-09-16 01:25:36 +0200
committerTristan Darricau <github@nicofuma.fr>2014-09-16 01:25:36 +0200
commitf4260e261ff03cbe1467f4c9400310bacf72ffff (patch)
treeb6574770b14ba58b51d8a978e55fad2dbadd52a6 /tests/controller
parent68ad7685bc12050cf6779d41f6ac36e8fe1a98e1 (diff)
downloadforums-f4260e261ff03cbe1467f4c9400310bacf72ffff.tar
forums-f4260e261ff03cbe1467f4c9400310bacf72ffff.tar.gz
forums-f4260e261ff03cbe1467f4c9400310bacf72ffff.tar.bz2
forums-f4260e261ff03cbe1467f4c9400310bacf72ffff.tar.xz
forums-f4260e261ff03cbe1467f4c9400310bacf72ffff.zip
[ticket/13034] Fix tests
PHPBB3-13034
Diffstat (limited to 'tests/controller')
-rw-r--r--tests/controller/helper_route_test.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/controller/helper_route_test.php b/tests/controller/helper_route_test.php
index 5b0cde2c20..203abccafb 100644
--- a/tests/controller/helper_route_test.php
+++ b/tests/controller/helper_route_test.php
@@ -30,9 +30,10 @@ class phpbb_controller_helper_route_test extends phpbb_test_case
$this->symfony_request = new \phpbb\symfony_request(
$request
);
+ $this->filesystem = new \phpbb\filesystem();
$phpbb_path_helper = new \phpbb\path_helper(
$this->symfony_request,
- new \phpbb\filesystem(),
+ $this->filesystem,
$this->getMock('\phpbb\request\request'),
$phpbb_root_path,
$phpEx
@@ -96,7 +97,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_mock_controller_helper($this->template, $this->user, $this->config, $this->provider, $this->extension_manager, $this->symfony_request, '', 'php', dirname(__FILE__) . '/');
+ $this->helper = new phpbb_mock_controller_helper($this->template, $this->user, $this->config, $this->provider, $this->extension_manager, $this->symfony_request, $this->filesystem, '', 'php', dirname(__FILE__) . '/');
$this->assertEquals($expected, $this->helper->route($route, $params, $is_amp, $session_id));
}
@@ -136,7 +137,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_mock_controller_helper($this->template, $this->user, $this->config, $this->provider, $this->extension_manager, $this->symfony_request, '', 'php', dirname(__FILE__) . '/');
+ $this->helper = new phpbb_mock_controller_helper($this->template, $this->user, $this->config, $this->provider, $this->extension_manager, $this->symfony_request, $this->filesystem, '', 'php', dirname(__FILE__) . '/');
$this->assertEquals($expected, $this->helper->route($route, $params, $is_amp, $session_id));
}
}