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: lib_test  - X-Ref

Group lib testcase.

test_member_added_event()   X-Ref
No description

test_member_removed_event()   X-Ref
No description

test_group_created_event()   X-Ref
No description

test_grouping_created_event()   X-Ref
No description

test_group_updated_event()   X-Ref
No description

test_group_updated_event_does_not_require_names()   X-Ref
No description

test_grouping_updated_event()   X-Ref
No description

test_grouping_updated_event_does_not_require_names()   X-Ref
No description

test_group_deleted_event()   X-Ref
No description

test_grouping_deleted_event()   X-Ref
No description

test_groups_delete_group_members()   X-Ref
No description

test_groups_remove_member()   X-Ref
No description

test_groups_delete_groupings_groups()   X-Ref
No description

test_groups_delete_groups()   X-Ref
No description

test_groups_delete_groupings()   X-Ref
No description

test_groups_with_customfield()   X-Ref
Test custom field for group.


test_groups_create_autogroups()   X-Ref
No description

test_groups_create_group_with_conversation()   X-Ref
Test groups_create_group enabling a group conversation.


test_groups_update_group_conversation()   X-Ref
Test groups_update_group enabling and disabling a group conversation.


test_groups_add_member_conversation()   X-Ref
Test groups_add_member to conversation.


test_groups_remove_member_conversation()   X-Ref
Test groups_remove_member to conversation.


test_add_members_group_updated_conversation_enabled()   X-Ref
Test if you enable group messaging in a group with members these are added to the conversation.


test_groups_get_members_by_role()   X-Ref
No description

test_set_groups_messaging()   X-Ref
Tests set_groups_messaging


test_set_groups_messaging_doesnt_exist()   X-Ref
Tests set group messaging where it doesn't exist


check_groups_messaging_status_is(array $groupids, int $courseid, bool $desired)   X-Ref
Checks the given list of groups to verify their messaging settings.

param: array $groupids array of group ids
param: int $courseid the course the groups are in
param: bool $desired the desired setting value
return: bool true if all groups $enablemessaging setting matches the given $desired value, else false