From c3697235c165c814a755ec10845b64316b704d46 Mon Sep 17 00:00:00 2001 From: Mark Johnson Date: Mon, 12 Jun 2023 16:01:13 +0100 Subject: [PATCH] MDL-76717 quiz: Fix behat exception Include class for DriverException thrown when trying to add a question without Javascript enabled. --- mod/quiz/tests/behat/behat_mod_quiz.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/quiz/tests/behat/behat_mod_quiz.php b/mod/quiz/tests/behat/behat_mod_quiz.php index 3ddddfb0bf9..e2779d2f561 100644 --- a/mod/quiz/tests/behat/behat_mod_quiz.php +++ b/mod/quiz/tests/behat/behat_mod_quiz.php @@ -31,6 +31,7 @@ require_once(__DIR__ . '/../../../../question/tests/behat/behat_question_base.ph use Behat\Gherkin\Node\TableNode as TableNode; use Behat\Mink\Exception\ExpectationException as ExpectationException; +use Behat\Mink\Exception\DriverException as DriverException; use mod_quiz\quiz_attempt; use mod_quiz\quiz_settings;