mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 05:20:56 +02:00
[ticket/11832] Fix INCLUDE(JS/CSS)
PHPBB3-11832
This commit is contained in:
@@ -49,7 +49,14 @@ class phpbb_controller_helper_url_test extends phpbb_test_case
|
||||
|
||||
$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());
|
||||
$phpbb_filesystem = new phpbb_filesystem(
|
||||
new phpbb_symfony_request(
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
$this->template = new phpbb_template_twig($phpbb_filesystem, $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'));
|
||||
@@ -94,7 +101,14 @@ class phpbb_controller_helper_url_test extends phpbb_test_case
|
||||
|
||||
$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());
|
||||
$phpbb_filesystem = new phpbb_filesystem(
|
||||
new phpbb_symfony_request(
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
$this->template = new phpbb_template_twig($phpbb_filesystem, $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');
|
||||
|
Reference in New Issue
Block a user