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.

Class: api_test  - X-Ref

Class api_test to test the communication public api and its associated methods.

setUp()   X-Ref
No description

test_set_data()   X-Ref
Test set data to the instance.


test_get_provider()   X-Ref
Test get_current_communication_provider method.


test_set_avatar()   X-Ref
Test set_avatar method.


test_create_and_configure_room()   X-Ref
Test the create_and_configure_room method to add/create tasks.


test_create_and_configure_room_without_communication_provider_selected()   X-Ref
Test the create_and_configure_room method to add/create tasks when no communication provider selected.


test_update_room()   X-Ref
Test update operation.


test_delete_room()   X-Ref
Test delete operation.


test_adding_and_removing_of_room_membership()   X-Ref
Test the adding and removing of members from room.


test_update_room_membership_on_user_role_change()   X-Ref
Test the update of room membership with the change user role.