1
0
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:
Oleg Pudeyev
2011-05-12 18:08:36 -04:00
parent 581374c9c3
commit d2ac05aa74
4 changed files with 65 additions and 39 deletions

View File

@@ -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');
}