diff options
author | javiexin <javiexin@gmail.com> | 2017-02-10 02:09:18 +0100 |
---|---|---|
committer | javiexin <javiexin@gmail.com> | 2017-02-10 02:09:18 +0100 |
commit | 7b2ffaf78c9f591d1b68e650918a59cc436adecf (patch) | |
tree | edfb072debc0e54b3f7900aa9f7b3d0550d9adfc /tests | |
parent | 7313eb54b4f23c9ccd238e1a368c69bedb452229 (diff) | |
download | forums-7b2ffaf78c9f591d1b68e650918a59cc436adecf.tar forums-7b2ffaf78c9f591d1b68e650918a59cc436adecf.tar.gz forums-7b2ffaf78c9f591d1b68e650918a59cc436adecf.tar.bz2 forums-7b2ffaf78c9f591d1b68e650918a59cc436adecf.tar.xz forums-7b2ffaf78c9f591d1b68e650918a59cc436adecf.zip |
[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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mock/extension_manager.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mock/extension_manager.php b/tests/mock/extension_manager.php index 3b759fbbc2..94268159a8 100644 --- a/tests/mock/extension_manager.php +++ b/tests/mock/extension_manager.php @@ -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'); } } |