Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403]
(no description)
File Size: | 309 lines (14 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 2 files question/engine/tests/helpers.php question/engine/lib.php |
datalib_test:: (8 methods):
test_set_max_mark_in_attempts()
test_load_used_variants()
test_repeated_usage_saving_new_usage()
test_repeated_usage_saving_existing_usage()
test_save_and_load_an_empty_usage()
test_cannot_save_a_step_with_a_missing_state()
get_file_area_name_cases()
test_clean_file_area_name()
Class: datalib_test - X-Ref
Unit tests for parts of {@link question_engine_data_mapper}.test_set_max_mark_in_attempts() X-Ref |
We create two usages, each with two questions, a short-answer marked out of 5, and and essay marked out of 10. We just start these attempts. Then we change the max mark for the short-answer question in one of the usages to 20, using a qubaid_list, and verify. Then we change the max mark for the essay question in the other usage to 2, using a qubaid_join, and verify. |
test_load_used_variants() X-Ref |
No description |
test_repeated_usage_saving_new_usage() X-Ref |
No description |
test_repeated_usage_saving_existing_usage() X-Ref |
No description |
test_save_and_load_an_empty_usage() X-Ref |
Test that database operations on an empty usage work without errors. |
test_cannot_save_a_step_with_a_missing_state() X-Ref |
No description |
get_file_area_name_cases() X-Ref |
Test cases for {@see test_get_file_area_name()}. return: array test cases |
test_clean_file_area_name(string $uncleanedfilearea, string $expectedfilearea) X-Ref |
Test get_file_area_name. param: string $uncleanedfilearea param: string $expectedfilearea |