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

Unit tests for /lib/externallib.php.

setUp()   X-Ref
No description

tearDown()   X-Ref
No description

test_external_settings()   X-Ref
Tests for external_settings class.


test_validate_params()   X-Ref
No description

test_external_format_text()   X-Ref
No description

test_external_format_string()   X-Ref
No description

test_clean_returnvalue_return_php_type()   X-Ref
Test for clean_returnvalue() for testing that returns the PHP type.


test_clean_returnvalue()   X-Ref
Test for clean_returnvalue().


test_get_context_from_params()   X-Ref
No description

test_get_context_params()   X-Ref
No description

test_get_context_params2()   X-Ref
No description

test_get_context_params3()   X-Ref
No description

all_external_info_provider()   X-Ref
No description

test_all_external_info($f)   X-Ref


test_validate_courses()   X-Ref
No description

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_call_external_function()   X-Ref
No description

test_external_util_get_area_files()   X-Ref
Text \external_util::get_area_files


test_external_files()   X-Ref
Text external files structure.


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


Class: test_exernal_api  - X-Ref

get_context_wrapper($params)   X-Ref
No description