aboutsummaryrefslogtreecommitdiffstats
path: root/tests/controller/common_helper_route.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/controller/common_helper_route.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/controller/common_helper_route.php')
-rw-r--r--tests/controller/common_helper_route.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/controller/common_helper_route.php b/tests/controller/common_helper_route.php
index 447c10d10e..3d3578ab43 100644
--- a/tests/controller/common_helper_route.php
+++ b/tests/controller/common_helper_route.php
@@ -74,7 +74,9 @@ abstract class phpbb_controller_common_helper_route extends phpbb_test_case
protected function generate_route_objects()
{
- global $request;
+ global $request, $phpbb_root_path, $phpEx;
+
+ $auth = $this->getMock('\phpbb\auth\auth');
$this->request = new phpbb_mock_request();
$this->request->overwrite('SCRIPT_NAME', $this->get_uri(), \phpbb\request\request_interface::SERVER);
@@ -122,7 +124,7 @@ abstract class phpbb_controller_common_helper_route extends phpbb_test_case
'autoescape' => false,
)
);
- $this->template = new phpbb\template\twig\twig($this->phpbb_path_helper, $this->config, $context, $twig, $cache_path, $this->user, array(new \phpbb\template\twig\extension($context, $twig, $this->user)));
+ $this->template = new phpbb\template\twig\twig($this->phpbb_path_helper, $this->config, $context, $twig, $cache_path, $this->user, array(new \phpbb\template\twig\extension($auth, $context, $twig, $this->user)));
$twig->setLexer(new \phpbb\template\twig\lexer($twig));
$this->extension_manager = new phpbb_mock_extension_manager(