(no description)
File Size: | 386 lines (12 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
stateupdates_test:: (9 methods):
test_add_course_put()
add_course_put_provider()
find_update()
test_add_section()
add_section_provider()
add_section_provider_helper()
test_add_cm()
add_cm_provider()
add_cm_provider_helper()
Class: stateupdates_test - X-Ref
Tests for the stateupdates class.test_add_course_put(string $role) X-Ref |
Test for add_course_put. param: string $role the user role in the course |
add_course_put_provider() X-Ref |
Data provider for test_add_course_put. return: array testing scenarios |
find_update(array $updatelist,string $action,string $name,int $identifier) X-Ref |
Helper methods to find a specific update in the updadelist. param: array $updatelist the update list param: string $action the action to find param: string $name the element name to find param: int $identifier the element id value return: stdClass|null the object found, if any. |
test_add_section(string $action, string $role, array $expected) X-Ref |
Add track about a section state update. param: string $action the action name param: string $role the user role name param: array $expected the expected results |
add_section_provider() X-Ref |
Data provider for test_add_section. return: array testing scenarios |
add_section_provider_helper(string $action) X-Ref |
Helper for add_section_provider scenarios. param: string $action the action to perform return: array testing scenarios |
test_add_cm(string $action, string $role, array $expected) X-Ref |
Add track about a course module state update. param: string $action the action name param: string $role the user role name param: array $expected the expected results |
add_cm_provider() X-Ref |
Data provider for test_add_cm. return: array testing scenarios |
add_cm_provider_helper(string $action) X-Ref |
Helper for add_cm_provider scenarios. param: string $action the action to perform return: array testing scenarios |