mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-81641 question: fix random question loader draft state tests
This commit is contained in:
parent
7b9a4eeca5
commit
676d764452
@ -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([]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user