Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Class: plugin_manager_test  - X-Ref

Unit tests for plugin manager class.

tearDown()   X-Ref
No description

test_instance()   X-Ref
No description

test_reset_caches()   X-Ref
No description

test_teardown_works_precheck()   X-Ref
Make sure that the tearDown() really kills the singleton after this test.


test_teardown_works_postcheck()   X-Ref
No description

test_get_plugin_types()   X-Ref
No description

test_get_installed_plugins()   X-Ref
No description

test_get_enabled_plugins()   X-Ref
No description

test_get_present_plugins()   X-Ref
No description

test_get_plugins()   X-Ref
No description

test_plugininfo_back_reference_to_the_plugin_manager()   X-Ref
No description

test_get_plugins_of_type()   X-Ref
No description

test_get_subplugins_of_plugin()   X-Ref
No description

test_get_subplugins()   X-Ref
No description

test_get_parent_of_subplugin()   X-Ref
No description

test_plugin_name()   X-Ref
No description

test_plugintype_name()   X-Ref
No description

test_plugintype_name_plural()   X-Ref
No description

test_get_plugin_info()   X-Ref
No description

test_can_uninstall_plugin()   X-Ref
No description

test_plugin_states()   X-Ref
No description

test_plugin_available_updates()   X-Ref
No description

test_some_plugins_updatable_none()   X-Ref
No description

test_some_plugins_updatable_some()   X-Ref
No description

test_available_updates()   X-Ref
No description

test_get_remote_plugin_info()   X-Ref
No description

test_get_remote_plugin_info_exception()   X-Ref
The combination of ANY_VERSION + $exactmatch is illegal.


test_is_remote_plugin_available()   X-Ref
No description

test_resolve_requirements()   X-Ref
No description

test_missing_dependencies()   X-Ref
No description

test_explicitly_supported($supported, $incompatible, $version, $expected)   X-Ref
Tests for check_explicitly_supported function to ensure that versions are correctly reported.

param: array|null $supported Supported versions to inject
param: string|int|null $incompatible Incompatible version to inject.
param: int $version Version to test
param: int $expected
return: void

check_explicitly_supported_provider()   X-Ref
Data provider for check_explicitly_supported with a range of correctly defined version support values.

return: array