aboutsummaryrefslogtreecommitdiffstats
path: root/tests/controller/helper_url_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/controller/helper_url_test.php')
-rw-r--r--tests/controller/helper_url_test.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/controller/helper_url_test.php b/tests/controller/helper_url_test.php
index da90947bb5..9a75015c9f 100644
--- a/tests/controller/helper_url_test.php
+++ b/tests/controller/helper_url_test.php
@@ -48,12 +48,12 @@ class phpbb_controller_helper_url_test extends phpbb_test_case
global $phpbb_dispatcher, $phpbb_root_path, $phpEx;
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
- $this->user = $this->getMock('phpbb_user');
- $this->template = new phpbb_template_twig($phpbb_root_path, $phpEx, $config, $this->user, new phpbb_template_context());
+ $this->user = $this->getMock('\phpbb\user');
+ $this->template = new \phpbb\template\twig\twig($phpbb_root_path, $phpEx, $config, $this->user, new \phpbb\template\context());
// We don't use mod_rewrite in these tests
- $config = new phpbb_config(array('enable_mod_rewrite' => '0'));
- $helper = new phpbb_controller_helper($this->template, $this->user, $config, '', 'php');
+ $config = new \phpbb\config\config(array('enable_mod_rewrite' => '0'));
+ $helper = new \phpbb\controller\helper($this->template, $this->user, $config, '', 'php');
$this->assertEquals($helper->url($route, $params, $is_amp, $session_id), $expected);
}
@@ -93,11 +93,11 @@ class phpbb_controller_helper_url_test extends phpbb_test_case
global $phpbb_dispatcher, $phpbb_root_path, $phpEx;
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
- $this->user = $this->getMock('phpbb_user');
- $this->template = new phpbb_template_twig($phpbb_root_path, $phpEx, $config, $this->user, new phpbb_template_context());
+ $this->user = $this->getMock('\phpbb\user');
+ $this->template = new \phpbb\template\twig\twig($phpbb_root_path, $phpEx, $config, $this->user, new \phpbb\template\context());
- $config = new phpbb_config(array('enable_mod_rewrite' => '1'));
- $helper = new phpbb_controller_helper($this->template, $this->user, $config, '', 'php');
+ $config = new \phpbb\config\config(array('enable_mod_rewrite' => '1'));
+ $helper = new \phpbb\controller\helper($this->template, $this->user, $config, '', 'php');
$this->assertEquals($helper->url($route, $params, $is_amp, $session_id), $expected);
}
}