From 360312f599edd852e14fcd162552e19dd2d278a6 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Sat, 31 Mar 2012 17:38:30 +0300 Subject: [feature/merging-style-components] Initializing locator and provider separately Moving locator and path provider initialization out of style class PHPBB3-10632 --- tests/template/template_test_case.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/template/template_test_case.php') diff --git a/tests/template/template_test_case.php b/tests/template/template_test_case.php index 5884225a54..f324736ba4 100644 --- a/tests/template/template_test_case.php +++ b/tests/template/template_test_case.php @@ -15,6 +15,8 @@ class phpbb_template_template_test_case extends phpbb_test_case protected $style; protected $template; protected $template_path; + protected $style_resource_locator; + protected $style_provider; // Keep the contents of the cache for debugging? const PRESERVE_CACHE = true; @@ -62,7 +64,9 @@ class phpbb_template_template_test_case extends phpbb_test_case $config = new phpbb_config(array_merge($defaults, $new_config)); $this->template_path = dirname(__FILE__) . '/templates'; - $this->style = new phpbb_style($phpbb_root_path, $phpEx, $config, $user, false); + $this->style_resource_locator = new phpbb_style_path_provider(); + $this->style_provider = new phpbb_style_path_provider(); + $this->style = new phpbb_style($phpbb_root_path, $phpEx, $config, $user, $this->style_resource_locator, $this->style_provider); $this->style->set_custom_style('tests', $this->template_path, ''); $this->template = $this->style->template; } -- cgit v1.2.1