Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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