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.

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

Defines 1 class

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