[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/tests/ -> grouplib_test.php (summary)

Tests groups subsystems.

Author: Andrew Nicols
Copyright: 2007 onwards Martin Dougiamas (http://dougiamas.com)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 1355 lines (63 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_grouplib_testcase:: (17 methods):
  test_groups_get_group_by_idnumber()
  test_groups_get_grouping_by_idnumber()
  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_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()


Class: core_grouplib_testcase  - X-Ref

Unit tests for lib/grouplib.php

test_groups_get_group_by_idnumber()   X-Ref
No description

test_groups_get_grouping_by_idnumber()   X-Ref
No description

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_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.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1