Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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 39 and 310] [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

Unit tests for config only library functions-

Copyright: 2012 Petr Skoda {@link http://skodak.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 225 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/configonlylib.php

Defines 1 class


Class: core_configonlylib_testcase  - 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.