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.

(no description)

File Size: 102 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

message_helper_test:: (2 methods):
  test_is_instructor_launch()
  message_roles_provider()


Class: message_helper_test  - X-Ref

Test cases for the enrol_lti\local\ltiadvantage\utility\message_helper utility class.

test_is_instructor_launch(array $jwtdata, bool $expected)   X-Ref
Test the static helper is_instructor_launch.

param: array $jwtdata the mock JWT data from a launch.
param: bool $expected the expected return of is_instructor_launch() given the JWT data.

message_roles_provider()   X-Ref
Data provider for testing role helpers.

return: array the array of test JWT data.