From d2ac05aa74d3a1c9723be41a4c0ffe86542f223f Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Thu, 12 May 2011 18:08:36 -0400 Subject: [feature/template-engine] Replaced globals with dependency injection. PHPBB3-9726 --- tests/template/template_test.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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'); } -- cgit v1.2.1