1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[feature/twig] Remove style dependency for controller helper

If a controller wants to use set_style, it can just use phpbb_style

PHPBB3-11598
This commit is contained in:
Nathan Guse
2013-07-05 12:11:59 -05:00
parent 1f4a717f9e
commit 13c3565454
3 changed files with 2 additions and 26 deletions

View File

@@ -55,7 +55,7 @@ class phpbb_controller_helper_url_test extends phpbb_test_case
$this->style_provider = new phpbb_style_path_provider();
$this->style = new phpbb_style($phpbb_root_path, $phpEx, new phpbb_config(array()), $this->user, $this->style_resource_locator, $this->style_provider, $this->template);
$helper = new phpbb_controller_helper($this->style, $this->template, $this->user, '', 'php');
$helper = new phpbb_controller_helper($this->template, $this->user, '', 'php');
$this->assertEquals($helper->url($route, $params, $is_amp, $session_id), $expected);
}
}