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 base class.

Copyright: 2019 Andrew Nicols
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 282 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: base_testcase  - X-Ref

Tests of the basic API of the plugin manager.

setUpBeforeClass()   X-Ref
Setup to ensure that fixtures are loaded.


tearDown()   X-Ref
Tear down the testable plugin manager singleton between tests.


test_load_disk_version_invalid_supported_version($supported, $incompatible, $version)   X-Ref
Test the load_disk_version function to check that it handles a variety of invalid supported fields.

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

load_disk_version_invalid_supported_version_provider()   X-Ref
Data provider for the load_disk_version tests for testing with invalid supported fields.

return: array

test_load_disk_version_invalid_incompatible_version($incompatible)   X-Ref
Test the load_disk_version function to check that it handles a variety of invalid incompatible fields.

param: mixed $incompatible

load_disk_version_invalid_incompatible_version_provider()   X-Ref
Data provider for the load_disk_version tests for testing with invalid incompatible fields.

return: array

test_load_disk_version_branch_supports($supported, $incompatible, $version)   X-Ref
Test the load_disk_version function to check that it handles a range of correct supported and incompatible field
definitions.

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

test_load_disk_version_branch_supports_provider()   X-Ref
Test cases for tests of load_disk_version for testing the supported/incompatible fields.

return: array