Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]
Unit tests for group lib.
Copyright: | 2013 Frédéric Massart |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 971 lines (48 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
lib_test:: (26 methods):
test_member_added_event()
test_member_removed_event()
test_group_created_event()
test_grouping_created_event()
test_group_updated_event()
test_group_updated_event_does_not_require_names()
test_grouping_updated_event()
test_grouping_updated_event_does_not_require_names()
test_group_deleted_event()
test_grouping_deleted_event()
test_groups_delete_group_members()
test_groups_remove_member()
test_groups_delete_groupings_groups()
test_groups_delete_groups()
test_groups_delete_groupings()
test_groups_with_customfield()
test_groups_create_autogroups()
test_groups_create_group_with_conversation()
test_groups_update_group_conversation()
test_groups_add_member_conversation()
test_groups_remove_member_conversation()
test_add_members_group_updated_conversation_enabled()
test_groups_get_members_by_role()
test_set_groups_messaging()
test_set_groups_messaging_doesnt_exist()
check_groups_messaging_status_is()
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 |