See Release Notes
Long Term Support Release
Unit tests for repository plugin manager class.
Copyright: | 2021 Amaia Anabitarte <amaia@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 117 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
repository_test:: (2 methods):
test_enable_plugin()
enable_plugin_provider()
Class: repository_test - X-Ref
Tests of the repository plugin manager.test_enable_plugin(string $pluginname, ?int $initialvisibility, int $newstatus, bool $result) X-Ref |
Test the enable_plugin function to check that it enables and disables repository plugins properly. param: string $pluginname Repository to enable. param: int|null $initialvisibility Initialvalue for visibility field. param: int $newstatus New enabled status for the plugin. param: bool $result Wether the repository is part of enabled plugin list or not. |
enable_plugin_provider() X-Ref |
Data provider for the load_disk_version tests for testing with invalid supported fields. return: array |