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