mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/11852] Split filesystem and path_helper into 2 classes
PHPBB3-11852
This commit is contained in:
@@ -49,14 +49,15 @@ class phpbb_controller_helper_url_test extends phpbb_test_case
|
||||
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
|
||||
$this->user = $this->getMock('\phpbb\user');
|
||||
$phpbb_filesystem = new \phpbb\filesystem(
|
||||
$phpbb_path_helper = new \phpbb\path_helper(
|
||||
new \phpbb\symfony_request(
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
new \phpbb\filesystem(),
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
$this->template = new phpbb\template\twig\twig($phpbb_filesystem, $config, $this->user, new \phpbb\template\context());
|
||||
$this->template = new phpbb\template\twig\twig($phpbb_path_helper, $config, $this->user, new \phpbb\template\context());
|
||||
|
||||
// We don't use mod_rewrite in these tests
|
||||
$config = new \phpbb\config\config(array('enable_mod_rewrite' => '0'));
|
||||
@@ -101,14 +102,15 @@ class phpbb_controller_helper_url_test extends phpbb_test_case
|
||||
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
|
||||
$this->user = $this->getMock('\phpbb\user');
|
||||
$phpbb_filesystem = new \phpbb\filesystem(
|
||||
$phpbb_path_helper = new \phpbb\path_helper(
|
||||
new \phpbb\symfony_request(
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
new \phpbb\filesystem(),
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
$this->template = new \phpbb\template\twig\twig($phpbb_filesystem, $config, $this->user, new \phpbb\template\context());
|
||||
$this->template = new \phpbb\template\twig\twig($phpbb_path_helper, $config, $this->user, new \phpbb\template\context());
|
||||
|
||||
$config = new \phpbb\config\config(array('enable_mod_rewrite' => '1'));
|
||||
$helper = new \phpbb\controller\helper($this->template, $this->user, $config, '', 'php');
|
||||
|
Reference in New Issue
Block a user