Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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.