Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]

Moodle Mobile admin tool external functions tests.

Copyright: 2016 Juan Leyva
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 799 lines (36 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: tool_mobile_external_testcase  - 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.