From c71ca318f585f131a29cc305fc58c30622c8fd7f Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Thu, 10 Jul 2025 11:07:25 +0800 Subject: [PATCH] MDL-84695 mod_qbank: Fix illegal whitespace --- question/tests/local/bank/question_bank_helper_test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/question/tests/local/bank/question_bank_helper_test.php b/question/tests/local/bank/question_bank_helper_test.php index dba65f9ec68..e08cb776449 100644 --- a/question/tests/local/bank/question_bank_helper_test.php +++ b/question/tests/local/bank/question_bank_helper_test.php @@ -415,12 +415,12 @@ final class question_bank_helper_test extends \advanced_testcase { $this->assertEquals(get_string('systembank', 'question'), $qbank->get_name()); $modrecord = $DB->get_record('qbank', ['id' => $qbank->instance]); $this->assertEquals(question_bank_helper::TYPE_SYSTEM, $modrecord->type); - // Create module other than a qbank with an ID that isn't used by a qbank yet. - do { - $wiki = self::getDataGenerator()->create_module('wiki', [ + // Create module other than a qbank with an ID that isn't used by a qbank yet. + do { + $wiki = self::getDataGenerator()->create_module('wiki', [ 'course' => $course->id, ]); - } while ($DB->record_exists('qbank', ['id' => $wiki->id])); + } while ($DB->record_exists('qbank', ['id' => $wiki->id])); // Swap the qbank instance record for one with the same ID as the wiki instance. $newqbank = clone($modrecord); $newqbank->id = $wiki->id;