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: 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_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.