mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/template-engine] Replaced globals with dependency injection.
PHPBB3-9726
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user