From ee47095dbbfd4c61b24ff515130d85ad06c4e680 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Thu, 27 Jun 2019 00:36:54 +0200 Subject: [PATCH] MDL-53778 quiz: ensure completion deps are fulfilled by behat Behat backgrounds and scenarios must observe the new interdependencies between quiz completion settings. This commits just applies that to the tests missing it. --- .../tests/behat/completion_condition_attempts_used.feature | 4 ++-- .../tests/behat/completion_condition_passing_grade.feature | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/quiz/tests/behat/completion_condition_attempts_used.feature b/mod/quiz/tests/behat/completion_condition_attempts_used.feature index 7e87610f57a..370c9638276 100644 --- a/mod/quiz/tests/behat/completion_condition_attempts_used.feature +++ b/mod/quiz/tests/behat/completion_condition_attempts_used.feature @@ -25,8 +25,8 @@ Feature: Set a quiz to be marked complete when the student uses all attempts all | questioncategory | qtype | name | questiontext | | Test questions | truefalse | First question | Answer the first question | And the following "activities" exist: - | activity | name | course | idnumber | attempts | gradepass | completion | completionattemptsexhausted | - | quiz | Test quiz name | C1 | quiz1 | 2 | 5.00 | 2 | 1 | + | activity | name | course | idnumber | attempts | gradepass | completion | completionusegrade | completionpass | completionattemptsexhausted | + | quiz | Test quiz name | C1 | quiz1 | 2 | 5.00 | 2 | 1 | 1 | 1 | And quiz "Test quiz name" contains the following questions: | question | page | | First question | 1 | diff --git a/mod/quiz/tests/behat/completion_condition_passing_grade.feature b/mod/quiz/tests/behat/completion_condition_passing_grade.feature index 668c563bfb0..d5ec91bcf99 100644 --- a/mod/quiz/tests/behat/completion_condition_passing_grade.feature +++ b/mod/quiz/tests/behat/completion_condition_passing_grade.feature @@ -25,8 +25,8 @@ Feature: Set a quiz to be marked complete when the student passes | questioncategory | qtype | name | questiontext | | Test questions | truefalse | First question | Answer the first question | And the following "activities" exist: - | activity | name | course | idnumber | attempts | gradepass | completion | completionpass | - | quiz | Test quiz name | C1 | quiz1 | 4 | 5.00 | 2 | 1 | + | activity | name | course | idnumber | attempts | gradepass | completion | completionusegrade | completionpass | + | quiz | Test quiz name | C1 | quiz1 | 4 | 5.00 | 2 | 1 | 1 | And quiz "Test quiz name" contains the following questions: | question | page | | First question | 1 |