See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]
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: | 874 lines (38 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file mod/workshop/tests/fixtures/testable.php |
locallib_test:: (42 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()
test_init_initial_bar()
test_init_initial_bar_empty()
test_get_initial_first()
test_get_initial_last()
get_initial_bar_prefs_property()
Class: locallib_test - 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. |
test_init_initial_bar() X-Ref |
Test init_initial_bar function. |
test_init_initial_bar_empty() X-Ref |
Test empty init_initial_bar |
test_get_initial_first() X-Ref |
Test get_initial_first function |
test_get_initial_last() X-Ref |
Test get_initial_last function |
get_initial_bar_prefs_property() X-Ref |
Get the protected propertyinitialbarprefs from workshop class. return: array initialbarspref property. eg ['i_first' => 'A', 'i_last' => 'B'] |