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.

(no description)

File Size: 414 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: util_test  - X-Ref

Unit tests for core_external\util.

setUp()   X-Ref
Store the global DB for restore between tests.


include_legacy_functions()   X-Ref
A helper to include the legacy external functions.


tearDown()   X-Ref
Reset the global DB between tests.


test_validate_courses_keepfails()   X-Ref
Validate courses, but still return courses even if they fail validation.


test_validate_courses_prefetch()   X-Ref
Validate courses can re-use an array of prefetched courses.


test_validate_courses()   X-Ref
Test the Validate courses standard functionality.


test_get_area_files()   X-Ref
Text util::get_area_files


test_user_created_tokens_duration()   X-Ref
Test default time for user created tokens.


test_format_text()   X-Ref
Test the format_text function.


test_external_format_string()   X-Ref
Teset the format_string function.