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

Moodle Mobile admin tool external functions tests.

test_get_plugins_supporting_mobile()   X-Ref
Test get_plugins_supporting_mobile.
This is a very basic test because currently there aren't plugins supporting Mobile in core.


test_get_public_config()   X-Ref
No description

test_get_config()   X-Ref
Test get_config


test_get_autologin_key()   X-Ref
No description

test_get_autologin_key_missing_ws()   X-Ref
Test get_autologin_key missing ws.


test_get_autologin_key_missing_https()   X-Ref
Test get_autologin_key missing https.


test_get_autologin_key_missing_admin()   X-Ref
Test get_autologin_key missing admin.


test_get_autologin_key_missing_locked()   X-Ref
Test get_autologin_key locked.


test_get_autologin_key_missing_app_request()   X-Ref
Test get_autologin_key missing app_request.


test_get_content()   X-Ref
Test get_content.


test_get_content_disabled()   X-Ref
Test get_content disabled.


test_get_content_non_existent_function()   X-Ref
Test get_content non existent function in valid component.


test_get_content_invalid_component()   X-Ref
Test get_content incorrect component.


test_get_content_non_existent_component()   X-Ref
Test get_content non existent component.


test_call_external_functions()   X-Ref
No description

test_get_tokens_for_qr_login()   X-Ref
No description

test_get_tokens_for_qr_login_ignore_ip_check()   X-Ref
No description

test_get_tokens_for_qr_login_ip_check_mismatch()   X-Ref
No description

test_get_tokens_for_qr_login_missing_enableqr()   X-Ref
Test get_tokens_for_qr_login missing QR code enabled.


test_get_tokens_for_qr_login_missing_ws()   X-Ref
Test get_tokens_for_qr_login missing ws.


test_get_tokens_for_qr_login_missing_https()   X-Ref
Test get_tokens_for_qr_login missing https.


test_get_tokens_for_qr_login_missing_admin()   X-Ref
Test get_tokens_for_qr_login missing admin.


test_get_tokens_for_qr_login_missing_app_request()   X-Ref
Test get_tokens_for_qr_login missing app_request.


test_validate_subscription_key_valid()   X-Ref
Test validate subscription key.


test_validate_subscription_key_invalid_key_first()   X-Ref
Test validate subscription key invalid first and then a valid one.


test_validate_subscription_key_invalid_key()   X-Ref
Test validate subscription key invalid.


test_validate_subscription_key_outdated()   X-Ref
Test validate subscription key invalid.