aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-05-12 18:08:36 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-05-12 20:13:31 -0400
commitd2ac05aa74d3a1c9723be41a4c0ffe86542f223f (patch)
treea918b665e08f13a6ed8313372eabe92a96ed2258 /tests
parent581374c9c3c3429f0a07c19e3c8de81fd3e6f320 (diff)
downloadforums-d2ac05aa74d3a1c9723be41a4c0ffe86542f223f.tar
forums-d2ac05aa74d3a1c9723be41a4c0ffe86542f223f.tar.gz
forums-d2ac05aa74d3a1c9723be41a4c0ffe86542f223f.tar.bz2
forums-d2ac05aa74d3a1c9723be41a4c0ffe86542f223f.tar.xz
forums-d2ac05aa74d3a1c9723be41a4c0ffe86542f223f.zip
[feature/template-engine] Replaced globals with dependency injection.
PHPBB3-9726
Diffstat (limited to 'tests')
-rw-r--r--tests/template/template_test.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php
index 0553132484..9b4023c62c 100644
--- a/tests/template/template_test.php
+++ b/tests/template/template_test.php
@@ -32,8 +32,10 @@ class phpbb_template_template_test extends phpbb_test_case
private function setup_engine()
{
+ global $phpbb_root_path, $phpEx, $config, $user;
+
$this->template_path = dirname(__FILE__) . '/templates';
- $this->template = new phpbb_template();
+ $this->template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user);
$this->template->set_custom_template($this->template_path, 'tests');
}