Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]
Completion tests.
Copyright: | 2008 Sam Marshall |
Copyright: | 2013 Frédéric Massart |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 1123 lines (48 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
core_completionlib_testcase:: (24 methods):
mock_setup()
setup_data()
assertEquals()
test_is_enabled()
test_update_state()
test_internal_get_state()
test_set_module_viewed()
test_count_user_data()
test_delete_all_state()
test_reset_all_state()
get_data_provider()
test_get_data()
test_internal_set_data()
test_get_progress_all()
test_inform_grade_changed()
test_internal_get_grade_state()
test_get_activities()
test_has_activities()
test_course_delete_prerequisite()
test_course_module_completion_updated_event()
test_course_completed_event()
test_course_completed_message()
test_course_completion_updated_event()
test_completion_can_view_data()
core_completionlib_fake_recordset:: (8 methods):
__construct()
current()
key()
next()
rewind()
valid()
close()
was_closed()
Class: core_completionlib_testcase - X-Ref
mock_setup() X-Ref |
No description |
setup_data() X-Ref |
Create course with user and activities. |
assertEquals($expected, $actual, string $message = '', float $delta = 0, int $maxDepth = 10,bool $canonicalize = false, bool $ignoreCase = false) X-Ref |
Asserts that two variables are equal. param: mixed $expected param: mixed $actual param: string $message param: float $delta param: integer $maxDepth param: boolean $canonicalize param: boolean $ignoreCase |
test_is_enabled() X-Ref |
No description |
test_update_state() X-Ref |
No description |
test_internal_get_state() X-Ref |
No description |
test_set_module_viewed() X-Ref |
No description |
test_count_user_data() X-Ref |
No description |
test_delete_all_state() X-Ref |
No description |
test_reset_all_state() X-Ref |
No description |
get_data_provider() X-Ref |
Data provider for test_get_data(). return: array[] |
test_get_data(bool $wholecourse, bool $sameuser, bool $hasrecord, int $completion) X-Ref |
Tests for completion_info::get_data(). param: bool $wholecourse Whole course parameter for get_data(). param: bool $sameuser Whether the user calling get_data() is the user itself. param: bool $hasrecord Whether to create a course_modules_completion record. param: int $completion The completion state expected. |
test_internal_set_data() X-Ref |
No description |
test_get_progress_all() X-Ref |
No description |
test_inform_grade_changed() X-Ref |
No description |
test_internal_get_grade_state() X-Ref |
No description |
test_get_activities() X-Ref |
No description |
test_has_activities() X-Ref |
No description |
test_course_delete_prerequisite() X-Ref |
Test that data is cleaned up when we delete courses that are set as completion criteria for other courses return: void |
test_course_module_completion_updated_event() X-Ref |
Test course module completion update event. |
test_course_completed_event() X-Ref |
Test course completed event. |
test_course_completed_message() X-Ref |
Test course completed message. |
test_course_completion_updated_event() X-Ref |
Test course completed event. |
test_completion_can_view_data() X-Ref |
No description |