Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]
PHPUnit tests for helper class.
Author: | Dmitrii Metelkin <dmitriim@catalyst-au.net> |
Copyright: | 2020 Catalyst IT |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 193 lines (9 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file mod/quiz/accessrule/seb/tests/test_helper_trait.php |
quizaccess_seb_helper_testhelpertrait:: (7 methods):
test_is_valid_seb_config()
test_get_seb_file_headers()
test_can_not_get_config_content_with_invalid_cmid()
test_can_not_get_config_content_when_user_not_enrolled_in_course()
test_can_not_get_config_content_if_config_not_found_for_cmid()
test_can_not_get_config_content_if_config_empty()
test_config_provided()
Class: quizaccess_seb_helper_testhelpertrait - X-Ref
PHPUnit tests for helper class.test_is_valid_seb_config() X-Ref |
Test that we can check valid seb string. |
test_get_seb_file_headers() X-Ref |
Test that we can get seb file headers. |
test_can_not_get_config_content_with_invalid_cmid() X-Ref |
Test that the course module must exist to get a seb config file content. |
test_can_not_get_config_content_when_user_not_enrolled_in_course() X-Ref |
Test that the user must be enrolled to get seb config content. |
test_can_not_get_config_content_if_config_not_found_for_cmid() X-Ref |
Test that if SEB quiz settings can't be found, a seb config content won't be provided. |
test_can_not_get_config_content_if_config_empty() X-Ref |
That that if config is empty for a quiz, a seb config content won't be provided. |
test_config_provided() X-Ref |
Test config content is provided successfully. |