See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 401 and 402] [Versions 401 and 403]
(no description)
File Size: | 431 lines (19 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
question_test:: (12 methods):
test_get_question_summary()
test_summarise_response()
summarise_response_provider()
test_is_same_response()
test_is_same_response_with_template()
test_is_complete_response()
test_get_question_definition_for_external_rendering()
test_get_validation_error()
get_min_max_wordlimit_test_cases()
test_get_word_count_message_for_review()
get_word_count_message_for_review_test_cases()
create_user_and_sample_attachments()
Class: question_test - X-Ref
Unit tests for the matching question definition class.test_get_question_summary() X-Ref |
No description |
test_summarise_response(int $responserequired, int $attachmentsrequired,string $answertext, int $attachmentuploaded, string $expected) X-Ref |
Test summarise_response() when teachers view quiz attempts and then review them to see what has been saved in the response history table. param: int $responserequired param: int $attachmentsrequired param: string $answertext param: int $attachmentuploaded param: string $expected |
summarise_response_provider() X-Ref |
Data provider for summarise_response() test cases. return: array List of data sets (test cases) |
test_is_same_response() X-Ref |
No description |
test_is_same_response_with_template() X-Ref |
No description |
test_is_complete_response() X-Ref |
No description |
test_get_question_definition_for_external_rendering() X-Ref |
test_get_question_definition_for_external_rendering |
test_get_validation_error(int $responserequired,int $minwordlimit, int $maxwordlimit, string $expected) X-Ref |
Test get_validation_error when users submit their input text. (The tests are done with a fixed 14-word response.) param: int $responserequired whether response required (yes = 1, no = 0) param: int $minwordlimit minimum word limit param: int $maxwordlimit maximum word limit param: string $expected error message | null |
get_min_max_wordlimit_test_cases() X-Ref |
Data provider for get_validation_error test. return: array the test cases. |
test_get_word_count_message_for_review(?int $minwordlimit, ?int $maxwordlimit, string $expected) X-Ref |
Test get_word_count_message_for_review when users submit their input text. (The tests are done with a fixed 14-word response.) param: int|null $minwordlimit minimum word limit param: int|null $maxwordlimit maximum word limit param: string $expected error message | null |
get_word_count_message_for_review_test_cases() X-Ref |
Data provider for test_get_word_count_message_for_review. return: array the test cases. |
create_user_and_sample_attachments($numberofattachments = 4) X-Ref |
Create sample attachemnts and retun generated attachments. param: int $numberofattachments return: array |