aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_events_test.php
diff options
context:
space:
mode:
authormrgoldy <gijsmartens1@gmail.com>2018-12-09 23:52:50 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-09-25 20:07:09 +0200
commit7989f3f71fd665aa743d947c7487d41c6f0a33d4 (patch)
tree4d2fe00e8c520c13400c193c994bb26070ae8044 /tests/template/template_events_test.php
parent012fe1887963adecc30fa46b7c7069a29600666d (diff)
downloadforums-7989f3f71fd665aa743d947c7487d41c6f0a33d4.tar
forums-7989f3f71fd665aa743d947c7487d41c6f0a33d4.tar.gz
forums-7989f3f71fd665aa743d947c7487d41c6f0a33d4.tar.bz2
forums-7989f3f71fd665aa743d947c7487d41c6f0a33d4.tar.xz
forums-7989f3f71fd665aa743d947c7487d41c6f0a33d4.zip
[ticket/15905] Try with existing phpbb extension
PHPBB3-15905
Diffstat (limited to 'tests/template/template_events_test.php')
-rw-r--r--tests/template/template_events_test.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/template/template_events_test.php b/tests/template/template_events_test.php
index 9243390937..e879979803 100644
--- a/tests/template/template_events_test.php
+++ b/tests/template/template_events_test.php
@@ -131,6 +131,8 @@ 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));
@@ -169,7 +171,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($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($auth, $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));