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

OpenId LTI Registration library tests

test_to_config_full()   X-Ref
Test the mapping from Registration JSON to LTI Config for a has-it-all tool registration.


test_to_config_minimal()   X-Ref
Test the mapping from Registration JSON to LTI Config for a minimal tool registration.


test_to_config_minimal_with_deeplinking()   X-Ref
Test the mapping from Registration JSON to LTI Config for a minimal tool with
deep linking support registration.


test_validation_initlogin()   X-Ref
Validation Test: initiation login.


test_validation_redirecturis()   X-Ref
Validation Test: redirect uris.


test_validation_jwks()   X-Ref
Validation Test: jwks uri empty.


test_validation_missing_domain_targetlinkuri()   X-Ref
Validation Test: no domain nor targetlinkuri is rejected.


test_validation_domain_targetlinkuri_match()   X-Ref
Validation Test: mismatch between domain and targetlinkuri is rejected.


test_validation_domain_targetlinkuri_onlylink()   X-Ref
Validation Test: domain is required.


test_validation_domain_targetlinkuri_onlydomain()   X-Ref
Validation Test: base url (targetlinkuri) is built from domain if not present.


test_config_to_registration()   X-Ref
Test the transformation from lti config to OpenId LTI Client Registration response.


test_config_to_registration_minimal()   X-Ref
Test the transformation from lti config to OpenId LTI Client Registration response for the minimal version.


test_config_to_registration_lti11()   X-Ref
Test the transformation from lti config 1.1 to Registration Response.


test_config_to_registration_lti20()   X-Ref
Test the transformation from lti config 2.0 to Registration Response.
For LTI 2.0 we limit to just passing the previous key/secret.