mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-19 08:01:27 +02: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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user