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.

This file contains unit tests for lti/openidregistrationlib.php

Author: Claude Vervoort
Copyright: 2020 Claude Vervoort, Cengage
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 345 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


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