Skip to content

4.6 - PHPUnit failures with Shared Question Banks #19

@aspark21

Description

@aspark21

Testing Moodle 4.6 for https://tracker.moodle.org/browse/MDLQA-19535

The following failures occur with this plugin that do not occur with 4.5

report_embedquestion.report_embedquestion_attempt_tracker_testcase/test_user_has_attemptreport_embedquestion\report_embedquestion_attempt_tracker_testcase::test_user_has_attempt core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:138 /var/www/html/report/embedquestion/tests/attempt_tracker_test.php:59 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.report_embedquestion_attempt_tracker_testcase/test_user_has_attempt_with_old_cache_hierarchyreport_embedquestion\report_embedquestion_attempt_tracker_testcase::test_user_has_attempt_with_old_cache_hierarchy core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:138 /var/www/html/report/embedquestion/tests/attempt_tracker_test.php:154 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.backup_test/test_duplicate_activity_should_not_copy_attemptsreport_embedquestion\backup_test::test_duplicate_activity_should_not_copy_attempts core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:138 /var/www/html/report/embedquestion/tests/backup_test.php:73 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.backup_test/test_backup_and_restore_course_with_user_data_should_copy_attemptsreport_embedquestion\backup_test::test_backup_and_restore_course_with_user_data_should_copy_attempts core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:138 /var/www/html/report/embedquestion/tests/backup_test.php:254 /var/www/html/report/embedquestion/tests/backup_test.php:111 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.backup_test/test_restore_deleted_page_with_attemptreport_embedquestion\backup_test::test_restore_deleted_page_with_attempt core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:138 /var/www/html/report/embedquestion/tests/backup_test.php:254 /var/www/html/report/embedquestion/tests/backup_test.php:155 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.backup_test/test_backup_and_restore_page_with_user_data_should_copy_attemptsreport_embedquestion\backup_test::test_backup_and_restore_page_with_user_data_should_copy_attempts core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:138 /var/www/html/report/embedquestion/tests/backup_test.php:254 /var/www/html/report/embedquestion/tests/backup_test.php:196 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.report_embedquestion_lib_testcase/test_report_embedquestion_extend_navigation_coursereport_embedquestion\report_embedquestion_lib_testcase::test_report_embedquestion_extend_navigation_course core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:165 /var/www/html/report/embedquestion/tests/lib_test.php:69 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.report_embedquestion_lib_testcase/test_report_embedquestion_extend_navigation_modulereport_embedquestion\report_embedquestion_lib_testcase::test_report_embedquestion_extend_navigation_module core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:138 /var/www/html/report/embedquestion/tests/lib_test.php:88 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.report_embedquestion_lib_testcase/test_report_embedquestion_questions_in_use_detects_question_in_usereport_embedquestion\report_embedquestion_lib_testcase::test_report_embedquestion_questions_in_use_detects_question_in_use core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:165 /var/www/html/report/embedquestion/tests/lib_test.php:112 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.privacy_provider_test/test_get_contexts_for_userid_with_attemptreport_embedquestion\privacy_provider_test::test_get_contexts_for_userid_with_attempt core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:165 /var/www/html/report/embedquestion/tests/privacy_provider_test.php:93 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.privacy_provider_test/test_get_users_in_context_with_attemptreport_embedquestion\privacy_provider_test::test_get_users_in_context_with_attempt core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:165 /var/www/html/report/embedquestion/tests/privacy_provider_test.php:122 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.privacy_provider_test/test_export_user_data_with_datareport_embedquestion\privacy_provider_test::test_export_user_data_with_data core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:165 /var/www/html/report/embedquestion/tests/privacy_provider_test.php:162 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.privacy_provider_test/test_delete_data_for_all_users_in_context_with_datareport_embedquestion\privacy_provider_test::test_delete_data_for_all_users_in_context_with_data core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:165 /var/www/html/report/embedquestion/tests/privacy_provider_test.php:224 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.privacy_provider_test/test_delete_data_for_user_with_datareport_embedquestion\privacy_provider_test::test_delete_data_for_user_with_data core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:165 /var/www/html/report/embedquestion/tests/privacy_provider_test.php:272 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.privacy_provider_test/test_delete_data_for_usersreport_embedquestion\privacy_provider_test::test_delete_data_for_users core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:165 /var/www/html/report/embedquestion/tests/privacy_provider_test.php:302 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.response_download_test/test_get_zip_url_with_supported_qtype with data set "Export file with question type essay"report_embedquestion\response_download_test::test_get_zip_url_with_supported_qtype with data set "Export file with question type essay" ('essay', 'editorfilepicker', '<p>The <b>cat</b> sat on the ...>.</p>', 'greeting.txt', 'Essay question with filepicke...e.html', 6) core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:138 /var/www/html/report/embedquestion/tests/response_download_test.php:93 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.response_download_test/test_get_zip_url_with_supported_qtype with data set "Export file with question type truefalse"report_embedquestion\response_download_test::test_get_zip_url_with_supported_qtype with data set "Export file with question type truefalse" ('truefalse', null, 'True', null, 'True-false question-response.html', 3) core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:138 /var/www/html/report/embedquestion/tests/response_download_test.php:93 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

report_embedquestion.response_download_test/test_get_zip_url_with_supported_qtype with data set "Export file with question type shortanswer"report_embedquestion\response_download_test::test_get_zip_url_with_supported_qtype with data set "Export file with question type shortanswer" ('shortanswer', null, '', null, 'Short answer question-response.html', 3) core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Categorycontextid must refer to a course context.  /var/www/html/filter/embedquestion/tests/generator/lib.php:112 /var/www/html/filter/embedquestion/tests/generator/lib.php:138 /var/www/html/report/embedquestion/tests/response_download_test.php:93 /var/www/html/lib/phpunit/classes/advanced_testcase.php:76

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions