Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]
(no description)
File Size: | 2355 lines (113 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
grouplib_test:: (36 methods):
test_groups_get_group_by_idnumber()
test_groups_get_grouping_by_idnumber()
test_groups_get_members_ids_sql()
test_groups_get_members_ids_sql_multiple_groups()
test_groups_get_members_ids_sql_multiple_groups_join_types()
test_groups_get_members_ids_sql_valid_context()
test_groups_get_members_ids_sql_empty_context()
test_groups_get_members_ids_sql_invalid_context()
test_groups_get_names_concat_sql()
test_groups_get_group_by_name()
test_groups_get_grouping()
test_groups_get_course_data()
test_groups_group_visible()
test_groups_get_groupmode()
test_groups_allgroups_course_menu()
test_groups_ordering()
test_groups_get_all_groups_in_grouping_with_members()
test_groups_get_user_groups()
make_group_list()
test_groups_sort_menu_options_empty()
test_groups_sort_menu_options_allowed_goups_only()
test_groups_sort_menu_options_user_goups_only()
test_groups_sort_menu_options_user_both()
test_groups_sort_menu_options_user_both_many_groups()
test_groups_user_groups_visible()
test_groups_get_groups_members()
test_groups_get_activity_shared_group_members()
create_groups_with_visibilty()
test_get_all_groups_with_visibility()
test_get_my_groups_with_visibility()
test_get_user_groups_with_visibility()
test_groups_is_member_with_visibility()
test_groups_get_members()
test_groups_get_members_with_visibility()
test_groups_get_groups_members_with_visibility()
test_groups_get_activity_allowed_groups()
Class: grouplib_test - X-Ref
Unit tests for lib/grouplib.phptest_groups_get_group_by_idnumber() X-Ref |
No description |
test_groups_get_grouping_by_idnumber() X-Ref |
No description |
test_groups_get_members_ids_sql() X-Ref |
No description |
test_groups_get_members_ids_sql_multiple_groups() X-Ref |
No description |
test_groups_get_members_ids_sql_multiple_groups_join_types() X-Ref |
No description |
test_groups_get_members_ids_sql_valid_context() X-Ref |
No description |
test_groups_get_members_ids_sql_empty_context() X-Ref |
No description |
test_groups_get_members_ids_sql_invalid_context() X-Ref |
No description |
test_groups_get_names_concat_sql() X-Ref |
Test retrieving users with concatenated group names from a course |
test_groups_get_group_by_name() X-Ref |
No description |
test_groups_get_grouping() X-Ref |
No description |
test_groups_get_course_data() X-Ref |
No description |
test_groups_group_visible() X-Ref |
Tests for groups_group_visible. |
test_groups_get_groupmode() X-Ref |
No description |
test_groups_allgroups_course_menu() X-Ref |
Tests for groups_allgroups_course_menu() . |
test_groups_ordering() X-Ref |
This unit test checks that groups_get_all_groups returns groups in alphabetical order even if they are in a grouping. |
test_groups_get_all_groups_in_grouping_with_members() X-Ref |
Tests for groups_get_all_groups when grouping is set and we want members as well. |
test_groups_get_user_groups() X-Ref |
Tests for groups_get_user_groups() method. |
make_group_list($number) X-Ref |
Create dummy groups array for use in menu tests param: int $number return: array |
test_groups_sort_menu_options_empty() X-Ref |
No description |
test_groups_sort_menu_options_allowed_goups_only() X-Ref |
No description |
test_groups_sort_menu_options_user_goups_only() X-Ref |
No description |
test_groups_sort_menu_options_user_both() X-Ref |
No description |
test_groups_sort_menu_options_user_both_many_groups() X-Ref |
No description |
test_groups_user_groups_visible() X-Ref |
Tests for groups_user_groups_visible. |
test_groups_get_groups_members() X-Ref |
Tests for groups_get_groups_members() method. |
test_groups_get_activity_shared_group_members() X-Ref |
Tests for groups_get_activity_shared_group_members() method. |
create_groups_with_visibilty() X-Ref |
Generate a set of groups with different visibility levels and users to assign to them. return: array |
test_get_all_groups_with_visibility() X-Ref |
Tests getting groups and group members based on visibility settings. This also covers the groupdata cache, since calls without $withmembers = true use the cache. |
test_get_my_groups_with_visibility() X-Ref |
Tests getting groups the current user is a member of, with visibility settings applied. |
test_get_user_groups_with_visibility() X-Ref |
Tests getting groups a user is a member of, with visibility settings applied. |
test_groups_is_member_with_visibility() X-Ref |
Test groups_is_member() using groups with different visibility settings. |
test_groups_get_members() X-Ref |
Test groups_get_members |
test_groups_get_members_with_visibility() X-Ref |
Test groups_get_members() using groups with different visibility settings. |
test_groups_get_groups_members_with_visibility() X-Ref |
Test groups_get_groups_members() using groups with different visibility settings. |
test_groups_get_activity_allowed_groups() X-Ref |
Only groups with participation == true should be returned for an activity. return: void |