diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-09-13 10:58:03 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-09-13 10:58:03 -0500 |
commit | b4a374dc73eda55db1c67b87bd65a73f79411ef5 (patch) | |
tree | ae392771a6aad76517e46b17c26797037c036a61 /tests/template/template_test_case_with_tree.php | |
parent | 21624e79fc512fd86177080010bb7d26c71ce3cb (diff) | |
download | forums-b4a374dc73eda55db1c67b87bd65a73f79411ef5.tar forums-b4a374dc73eda55db1c67b87bd65a73f79411ef5.tar.gz forums-b4a374dc73eda55db1c67b87bd65a73f79411ef5.tar.bz2 forums-b4a374dc73eda55db1c67b87bd65a73f79411ef5.tar.xz forums-b4a374dc73eda55db1c67b87bd65a73f79411ef5.zip |
[ticket/11832] Fix INCLUDE(JS/CSS)
PHPBB3-11832
Diffstat (limited to 'tests/template/template_test_case_with_tree.php')
-rw-r--r-- | tests/template/template_test_case_with_tree.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/template/template_test_case_with_tree.php b/tests/template/template_test_case_with_tree.php index 477192c28a..c4f3b4a257 100644 --- a/tests/template/template_test_case_with_tree.php +++ b/tests/template/template_test_case_with_tree.php @@ -18,9 +18,17 @@ class phpbb_template_template_test_case_with_tree extends phpbb_template_templat $defaults = $this->config_defaults(); $config = new phpbb_config(array_merge($defaults, $new_config)); + $phpbb_filesystem = new phpbb_filesystem( + new phpbb_symfony_request( + new phpbb_mock_request() + ), + $phpbb_root_path, + $phpEx + ); + $this->template_path = $this->test_path . '/templates'; $this->parent_template_path = $this->test_path . '/parent_templates'; - $this->template = new phpbb_template_twig($phpbb_root_path, $phpEx, $config, $user, new phpbb_template_context()); + $this->template = new phpbb_template_twig($phpbb_filesystem, $config, $user, new phpbb_template_context()); $this->template->set_custom_style('tests', array($this->template_path, $this->parent_template_path)); } } |