mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/14938] Inconsistency in ext_mgr all_available vs is_available
Made is_available much more strict, in line with the checks in all_available Refactor all_available to use is_available, saving duplicate code. Further simplify is_available by using metadata_manager. Make optional the template object on metadata_manager creation. Fix extension_manager_mock to have config and user components. PHPBB3-14938
This commit is contained in:
parent
7313eb54b4
commit
7b2ffaf78c
1 changed files with 2 additions and 0 deletions
|
@ -20,5 +20,7 @@ class phpbb_mock_extension_manager extends \phpbb\extension\manager
|
|||
$this->extensions = $extensions;
|
||||
$this->filesystem = new \phpbb\filesystem();
|
||||
$this->container = $container;
|
||||
$this->config = new \phpbb\config\config(array());
|
||||
$this->user = new \phpbb\user('\phpbb\datetime');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue