MDL-84695 mod_qbank: Fix illegal whitespace

This commit is contained in:
Mihail Geshoski
2025-07-10 11:08:27 +08:00
parent dd87321d18
commit c71ca318f5
@@ -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;