See Release Notes
Long Term Support Release
Differences Between: [Versions 39 and 310] [Versions 39 and 311] [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]
Tests for class core_course_category
Copyright: | 2013 Marina Glancy |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 1105 lines (59 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
core_course_category_testcase:: (24 methods):
setUp()
get_roleid()
assign_capability()
test_create_coursecat()
test_name_idnumber_exceptions()
test_visibility()
test_hierarchy()
test_update()
test_delete()
test_get_children()
test_get_all_children_ids()
test_count_all()
test_is_simple_site()
test_resort_courses()
test_get_search_courses()
test_course_contacts()
test_course_contacts_with_duplicates()
test_overview_files()
test_get_nested_name()
test_coursecat_is_uservisible()
test_current_user_coursecat_get()
test_another_user_coursecat_get()
fill_draft_area()
test_get_courses_during_delete()
Class: core_course_category_testcase - X-Ref
Functional test for class core_course_categorysetUp() X-Ref |
No description |
get_roleid($context = null) X-Ref |
No description |
assign_capability($capability, $permission = CAP_ALLOW, $contextid = null) X-Ref |
No description |
test_create_coursecat() X-Ref |
No description |
test_name_idnumber_exceptions() X-Ref |
No description |
test_visibility() X-Ref |
No description |
test_hierarchy() X-Ref |
No description |
test_update() X-Ref |
No description |
test_delete() X-Ref |
No description |
test_get_children() X-Ref |
No description |
test_get_all_children_ids() X-Ref |
Test the get_all_children_ids function. |
test_count_all() X-Ref |
Test the countall function |
test_is_simple_site() X-Ref |
Test the is_simple_site function |
test_resort_courses() X-Ref |
Test a categories ability to resort courses. |
test_get_search_courses() X-Ref |
No description |
test_course_contacts() X-Ref |
No description |
test_course_contacts_with_duplicates() X-Ref |
No description |
test_overview_files() X-Ref |
No description |
test_get_nested_name() X-Ref |
No description |
test_coursecat_is_uservisible() X-Ref |
No description |
test_current_user_coursecat_get() X-Ref |
No description |
test_another_user_coursecat_get() X-Ref |
No description |
fill_draft_area(array $files) X-Ref |
Creates a draft area for current user and fills it with fake files param: array $files array of files that need to be added to filearea, filename => filecontents return: int draftid for the filearea |
test_get_courses_during_delete() X-Ref |
This test ensures that is the list of courses in a category can be retrieved while a course is being deleted. |