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