Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]

Unit tests for plugin manager class.

Copyright: 2013 Petr Skoda {@link http://skodak.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 615 lines (28 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_plugin_manager_testcase  - X-Ref

Tests of the basic API of the plugin manager.

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