Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Class: configonlylib_test  - X-Ref

Unit tests for config only library functions.

test_min_fix_utf8()   X-Ref
Test cleaning of invalid utf-8 entities.


test_min_clean_param()   X-Ref
Test minimalistic parameter cleaning.


test_min_optional_param()   X-Ref
Test minimalistic getting of page parameters.


test_min_get_slash_argument()   X-Ref
Test fail-safe minimalistic slashargument processing.


test_min_get_minimum_version()   X-Ref
Test the min_get_minimum_version function.


test_min_get_maximum_version()   X-Ref
Test the min_get_maximum_version function.


test_min_is_revision_valid_and_current(int $revision, bool $expected)   X-Ref
Test the min_is_revision_valid_and_current function.


min_is_revision_valid_and_current_provider()   X-Ref
Data provider for the min_is_revision_valid_and_current tests.

return: array

test_min_is_revision_valid_and_current_close_proximity()   X-Ref
Test the min_is_revision_valid_and_current function with close times.

Note: These tests are incompatible with data providers.