Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

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

Defines 1 class


Class: matrix_user_manager_test  - X-Ref

Class matrix_user_manager_test to test the matrix user manager.

test_get_matrixid_from_moodle_without_field()   X-Ref
Test fetcihing a users matrix userid from Moodle.


test_get_matrixid_from_moodle()   X-Ref
Test fetching a user's matrix userid from Moodle.


test_get_formatted_matrix_userid_unset()   X-Ref
Test fetching a formatted matrix userid from Moodle when no server is set.


test_get_formatted_matrix_userid(string $server,string $username,string $expecteduserid,)   X-Ref
Test fetch of a formatted matrix userid.

param: string $server
param: string $username The moodle username to turn into a Matrix username
param: string $expecteduserid The expected matrix user id

get_formatted_matrix_userid_provider()   X-Ref
Data provider for get_formatted_matrix_userid.

return: array

set_matrix_userid_in_moodle_provider()   X-Ref
Data provider for set_matrix_userid_in_moodle.

return: array

test_set_matrix_userid_in_moodle(string $expectedusername,)   X-Ref
Test setting of a user's matrix userid in Moodle.

param: string $expectedusername

test_get_formatted_matrix_home_server(string $input,string $expectedoutput)   X-Ref
Test for getting a formatted matrix home server id.

param: string $input
param: string $expectedoutput

get_formatted_matrix_home_server_provider()   X-Ref
Data provider for get_formatted_matrix_home_server.

return: array

test_create_matrix_user_profile_fields()   X-Ref
Test creation of matrix user profile fields.