From 676d7644526d100e12ef57c807a08c076c763ade Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Tue, 23 Apr 2024 18:25:04 +0100 Subject: [PATCH] MDL-81641 question: fix random question loader draft state tests --- .../tests/random_question_loader_test.php | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/question/tests/random_question_loader_test.php b/question/tests/random_question_loader_test.php index a977bbbae9d..33b05269690 100644 --- a/question/tests/random_question_loader_test.php +++ b/question/tests/random_question_loader_test.php @@ -133,12 +133,10 @@ final class random_question_loader_test extends \advanced_testcase { // Try to a random question from that category - should not be one. $filtercondition = [ - 'filter' => [ - 'category' => [ - 'jointype' => condition::JOINTYPE_DEFAULT, - 'values' => [$category->id], - 'filteroptions' => ['includesubcategories' => false], - ], + 'category' => [ + 'jointype' => condition::JOINTYPE_DEFAULT, + 'values' => [$category->id], + 'filteroptions' => ['includesubcategories' => false], ], ]; $loader = new random_question_loader(new qubaid_list([])); @@ -160,12 +158,10 @@ final class random_question_loader_test extends \advanced_testcase { // Try to a random question from that category - should get V1. $filtercondition = [ - 'filter' => [ - 'category' => [ - 'jointype' => condition::JOINTYPE_DEFAULT, - 'values' => [$category->id], - 'filteroptions' => ['includesubcategories' => false], - ], + 'category' => [ + 'jointype' => condition::JOINTYPE_DEFAULT, + 'values' => [$category->id], + 'filteroptions' => ['includesubcategories' => false], ], ]; $loader = new random_question_loader(new qubaid_list([]));