You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) mod_quiz\backup\repeated_restore_test::test_restore_quiz_with_duplicate_questions with data set "coderunner" ('coderunner', 'sqr')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'150002'
+'150003'
/var/www/site/mod/quiz/tests/backup/repeated_restore_test.php:423
/var/www/site/lib/phpunit/classes/advanced_testcase.php:76
2) mod_quiz\backup\repeated_restore_test::test_restore_quiz_with_edited_questions with data set "coderunner" ('coderunner', 'sqr')
Failed asserting that 150000 matches expected '150002'.
/var/www/site/mod/quiz/tests/backup/repeated_restore_test.php:490
/var/www/site/lib/phpunit/classes/advanced_testcase.php:76
The text was updated successfully, but these errors were encountered:
…the fix for MDL-83541. This commit adds the functionality required to pass the repeated_restore test, but CodeRunner questions are still being duplicated when a quiz is duplicated or a course restored. Needs a deeper dive, but time is limited.
Hi there,
I've noticed a few issues with
qtype_coderunner
when running PHP unit tests with the plugin installed. The specific unit test failing ismod/quiz/tests/backup/repeated_restore_test.php
. Note this issue is related to https://tracker.moodle.org/browse/MDL-83541 and some further information about how to fix it can be found here: https://moodledev.io/docs/5.0/apis/plugintypes/qtype/restore.Environment:
Error messages:
The text was updated successfully, but these errors were encountered: