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: core_weblib_testcase  - X-Ref

test_format_string()   X-Ref
No description

test_format_string_static_caching_with_filters()   X-Ref
The format string static caching should include the filters option to make
sure filters are correctly applied when requested.


test_s()   X-Ref
No description

test_format_text_email()   X-Ref
No description

test_obfuscate_email()   X-Ref
No description

test_obfuscate_text()   X-Ref
No description

test_highlight()   X-Ref
No description

test_replace_ampersands()   X-Ref
No description

test_strip_links()   X-Ref
No description

test_wikify_links()   X-Ref
No description

test_clean_text()   X-Ref
No description

test_qualified_me()   X-Ref
No description

test_null_progres_trace()   X-Ref
No description

test_text_progres_trace()   X-Ref
No description

test_html_progres_trace()   X-Ref
No description

test_html_list_progress_trace()   X-Ref
No description

test_progres_trace_buffer()   X-Ref
No description

test_combined_progres_trace()   X-Ref
No description

test_set_debugging()   X-Ref
No description

test_strip_pluginfile_content()   X-Ref
No description

test_purify_html_ruby()   X-Ref
No description

test_content_to_text($content, $format, $expected)   X-Ref
Tests for content_to_text.

param: string    $content   The content
param: int|false $format    The content format
param: string    $expected  Expected value

provider_content_to_text()   X-Ref
Data provider for test_content_to_text.


data_validate_email()   X-Ref
Data provider for validate_email() function.

return: array Returns aray of test data for the test_validate_email function

test_validate_email($email, $result)   X-Ref
Tests valid and invalid email address using the validate_email() function.

param: string $email the email address to test
param: boolean $result Expected result (true or false)

provider_get_file_argument()   X-Ref
Data provider for test_get_file_argument.


test_get_file_argument($server, $cfgslasharguments, $expected)   X-Ref
Tests for get_file_argument() function.

param: array $server mockup for $_SERVER.
param: string $cfgslasharguments slasharguments setting.
param: string|false $expected Expected value.

test_extract_draft_file_urls_from_text()   X-Ref
Tests for extract_draft_file_urls_from_text() function.


test_print_password_policy()   X-Ref
No description