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]
Unit tests for workshop api class defined in mod/workshop/locallib.php
Copyright: | 2009 David Mudrak <david.mudrak@gmail.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 775 lines (35 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file mod/workshop/tests/fixtures/testable.php |
mod_workshop_internal_api_testcase:: (37 methods):
setUp()
tearDown()
test_aggregate_submission_grades_process_notgraded()
test_aggregate_submission_grades_process_single()
test_aggregate_submission_grades_process_null_doesnt_influence()
test_aggregate_submission_grades_process_weighted_single()
test_aggregate_submission_grades_process_mean()
test_aggregate_submission_grades_process_mean_changed()
test_aggregate_submission_grades_process_mean_nochange()
test_aggregate_submission_grades_process_rounding()
test_aggregate_submission_grades_process_weighted_mean()
test_aggregate_grading_grades_process_nograding()
test_aggregate_grading_grades_process_single_grade_new()
test_aggregate_grading_grades_process_single_grade_update()
test_aggregate_grading_grades_process_single_grade_uptodate()
test_aggregate_grading_grades_process_single_grade_overridden()
test_aggregate_grading_grades_process_multiple_grades_new()
test_aggregate_grading_grades_process_multiple_grades_update()
test_aggregate_grading_grades_process_multiple_grades_overriden()
test_aggregate_grading_grades_process_multiple_grades_one_missing()
test_aggregate_grading_grades_process_multiple_grades_missing_overridden()
test_percent_to_value()
test_percent_to_value_negative()
test_percent_to_value_over_hundred()
test_lcm()
test_lcm_array()
test_prepare_example_assessment()
test_prepare_example_reference_assessment()
test_user_restrictions()
test_reset_phase()
test_reset_userdata_assessments()
test_reset_userdata_submissions()
test_normalize_file_extensions()
test_clean_file_extensions()
test_invalid_file_extensions()
test_is_allowed_file_type()
test_check_group_membership()
Class: mod_workshop_internal_api_testcase - X-Ref
Test cases for the internal workshop apisetUp() X-Ref |
No description |
tearDown() X-Ref |
No description |
test_aggregate_submission_grades_process_notgraded() X-Ref |
No description |
test_aggregate_submission_grades_process_single() X-Ref |
No description |
test_aggregate_submission_grades_process_null_doesnt_influence() X-Ref |
No description |
test_aggregate_submission_grades_process_weighted_single() X-Ref |
No description |
test_aggregate_submission_grades_process_mean() X-Ref |
No description |
test_aggregate_submission_grades_process_mean_changed() X-Ref |
No description |
test_aggregate_submission_grades_process_mean_nochange() X-Ref |
No description |
test_aggregate_submission_grades_process_rounding() X-Ref |
No description |
test_aggregate_submission_grades_process_weighted_mean() X-Ref |
No description |
test_aggregate_grading_grades_process_nograding() X-Ref |
No description |
test_aggregate_grading_grades_process_single_grade_new() X-Ref |
No description |
test_aggregate_grading_grades_process_single_grade_update() X-Ref |
No description |
test_aggregate_grading_grades_process_single_grade_uptodate() X-Ref |
No description |
test_aggregate_grading_grades_process_single_grade_overridden() X-Ref |
No description |
test_aggregate_grading_grades_process_multiple_grades_new() X-Ref |
No description |
test_aggregate_grading_grades_process_multiple_grades_update() X-Ref |
No description |
test_aggregate_grading_grades_process_multiple_grades_overriden() X-Ref |
No description |
test_aggregate_grading_grades_process_multiple_grades_one_missing() X-Ref |
No description |
test_aggregate_grading_grades_process_multiple_grades_missing_overridden() X-Ref |
No description |
test_percent_to_value() X-Ref |
No description |
test_percent_to_value_negative() X-Ref |
No description |
test_percent_to_value_over_hundred() X-Ref |
No description |
test_lcm() X-Ref |
No description |
test_lcm_array() X-Ref |
No description |
test_prepare_example_assessment() X-Ref |
No description |
test_prepare_example_reference_assessment() X-Ref |
No description |
test_user_restrictions() X-Ref |
Tests user restrictions, as they affect lists of users returned by core API functions. This includes the groupingid option (when group mode is in use), and standard activity restrictions using the availability API. |
test_reset_phase() X-Ref |
Test the workshop reset feature. |
test_reset_userdata_assessments() X-Ref |
Test deleting assessments related data on workshop reset. |
test_reset_userdata_submissions() X-Ref |
Test deleting submissions related data on workshop reset. |
test_normalize_file_extensions() X-Ref |
Test normalizing list of extensions. |
test_clean_file_extensions() X-Ref |
Test cleaning list of extensions. |
test_invalid_file_extensions() X-Ref |
Test validation of the list of file extensions. |
test_is_allowed_file_type() X-Ref |
Test checking file name against the list of allowed extensions. |
test_check_group_membership() X-Ref |
Test workshop::check_group_membership() functionality. |