aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_test_case.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-09-30 16:21:02 -0700
committerNathan Guse <nathaniel.guse@gmail.com>2013-09-30 16:21:02 -0700
commit179f41475b555d0a3314d779d0d7423f66f0fb95 (patch)
tree8664f91f4fa58765cc34333b248c34b75ab91758 /tests/template/template_test_case.php
parentaf2ad7a162d7b4cf4bf617e97f601c6cb7d406d0 (diff)
parent213e7563ad4565b322680ce2f3526a7130d2a90e (diff)
downloadforums-179f41475b555d0a3314d779d0d7423f66f0fb95.tar
forums-179f41475b555d0a3314d779d0d7423f66f0fb95.tar.gz
forums-179f41475b555d0a3314d779d0d7423f66f0fb95.tar.bz2
forums-179f41475b555d0a3314d779d0d7423f66f0fb95.tar.xz
forums-179f41475b555d0a3314d779d0d7423f66f0fb95.zip
Merge pull request #1735 from nickvergessen/ticket/11852
Ticket/11852 filesystem class must not depend on a web request
Diffstat (limited to 'tests/template/template_test_case.php')
-rw-r--r--tests/template/template_test_case.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/template/template_test_case.php b/tests/template/template_test_case.php
index e9cbdec1d9..c75b1e5065 100644
--- a/tests/template/template_test_case.php
+++ b/tests/template/template_test_case.php
@@ -63,16 +63,17 @@ class phpbb_template_template_test_case extends phpbb_test_case
$config = new \phpbb\config\config(array_merge($defaults, $new_config));
$this->user = new \phpbb\user;
- $phpbb_filesystem = new \phpbb\filesystem(
+ $path_helper = new \phpbb\path_helper(
new \phpbb\symfony_request(
new phpbb_mock_request()
),
+ new \phpbb\filesystem(),
$phpbb_root_path,
$phpEx
);
$this->template_path = $this->test_path . '/templates';
- $this->template = new \phpbb\template\twig\twig($phpbb_filesystem, $config, $this->user, new \phpbb\template\context());
+ $this->template = new \phpbb\template\twig\twig($path_helper, $config, $this->user, new \phpbb\template\context());
$this->template->set_custom_style('tests', $this->template_path);
}