1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-22 08:30:26 +01:00

Merge pull request #4795 from marc1706/ticket/14938

[ticket/14938] Add missing language class to extension manager mock
This commit is contained in:
Marc Alexander 2017-04-16 17:35:43 +02:00
commit c5126af1df
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -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');
}
}