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.

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.