From f39e5424f1f8585a7ffad9ad068f3ae14fcd2375 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 16 Apr 2017 16:36:13 +0200 Subject: [ticket/14938] Add missing language class to extension manager mock PHPBB3-14938 --- tests/mock/extension_manager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/mock/extension_manager.php b/tests/mock/extension_manager.php index 4e48278bbd..0d6d110647 100644 --- a/tests/mock/extension_manager.php +++ b/tests/mock/extension_manager.php @@ -15,12 +15,15 @@ class phpbb_mock_extension_manager extends \phpbb\extension\manager { public function __construct($phpbb_root_path, $extensions = array(), $container = null) { + global $phpEx; + + $lang = new \phpbb\language\language(new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx)); $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = 'php'; $this->extensions = $extensions; $this->filesystem = new \phpbb\filesystem\filesystem(); $this->container = $container; $this->config = new \phpbb\config\config(array()); - $this->user = new \phpbb\user('\phpbb\datetime'); + $this->user = new \phpbb\user($lang,'\phpbb\datetime'); } } -- cgit v1.2.1