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.

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.