From cc5f6f222d7feef3b01e23d4dce276e29b8bbce1 Mon Sep 17 00:00:00 2001 From: Shamim Rezaie Date: Wed, 15 May 2024 21:52:49 +1000 Subject: [PATCH] MDL-81909 mod_assign: fix test_attempt_reopen_method_untilpass --- mod/assign/tests/locallib_test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/assign/tests/locallib_test.php b/mod/assign/tests/locallib_test.php index 126dfe42321..aa7c80db9cf 100644 --- a/mod/assign/tests/locallib_test.php +++ b/mod/assign/tests/locallib_test.php @@ -2654,15 +2654,15 @@ class locallib_test extends \advanced_testcase { $this->add_submission($student, $assign); $this->submit_for_grading($student, $assign); - // Mark the submission as passing. - $this->mark_submission($teacher, $assign, $student, 80.0); + // Mark the second submission as passing. + $this->mark_submission($teacher, $assign, $student, 80.0, [], 1); // Check that the student does not have a button for Add a new attempt. $this->setUser($student); $output = $assign->view_student_summary($student, true); $this->assertEquals(false, strpos($output, get_string('addnewattempt', 'assign'))); - // Re-mark the submission as not passing. + // Re-mark the second submission as not passing. $this->mark_submission($teacher, $assign, $student, 40.0, [], 1); // Check that the student now has a button for Add a new attempt.