diff options
| author | mrgoldy <gijsmartens1@gmail.com> | 2018-12-10 00:10:27 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2019-09-25 20:39:04 +0200 |
| commit | 133dfd0a84ce258fadab5f48de45684869b14800 (patch) | |
| tree | cb9acf47f24f975850ede6c9941a41524c201627 /tests/template/template_events_test.php | |
| parent | eee00652e7b608967a2ec5ee8fd165c2760be145 (diff) | |
| download | forums-133dfd0a84ce258fadab5f48de45684869b14800.tar forums-133dfd0a84ce258fadab5f48de45684869b14800.tar.gz forums-133dfd0a84ce258fadab5f48de45684869b14800.tar.bz2 forums-133dfd0a84ce258fadab5f48de45684869b14800.tar.xz forums-133dfd0a84ce258fadab5f48de45684869b14800.zip | |
[ticket/15905] Try it without auth
PHPBB3-15905
Diffstat (limited to 'tests/template/template_events_test.php')
| -rw-r--r-- | tests/template/template_events_test.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/template/template_events_test.php b/tests/template/template_events_test.php index e879979803..9243390937 100644 --- a/tests/template/template_events_test.php +++ b/tests/template/template_events_test.php @@ -131,8 +131,6 @@ Zeta test event in all', { global $phpbb_root_path, $phpEx, $user; - $auth = $this->getMock('\phpbb\auth\auth'); - $defaults = $this->config_defaults(); $config = new \phpbb\config\config(array_merge($defaults, $new_config)); @@ -171,7 +169,7 @@ Zeta test event in all', 'autoescape' => false, ) ); - $this->template = new \phpbb\template\twig\twig($path_helper, $config, $context, $twig, $cache_path, $this->user, array(new \phpbb\template\twig\extension($auth, $context, $twig, $this->user)), $this->extension_manager); + $this->template = new \phpbb\template\twig\twig($path_helper, $config, $context, $twig, $cache_path, $this->user, array(new \phpbb\template\twig\extension($context, $twig, $this->user)), $this->extension_manager); $twig->setLexer(new \phpbb\template\twig\lexer($twig)); $this->template->set_custom_style(((!empty($style_names)) ? $style_names : 'silver'), array($this->template_path)); |
