Merge branch 'MDL-85565_405' of https://github.com/PhilippImhof/moodle into MOODLE_405_STABLE

This commit is contained in:
Mihail Geshoski
2025-08-05 11:35:54 +08:00
+1
View File
@@ -574,6 +574,7 @@ abstract class question_testcase extends advanced_testcase {
$dom = new DOMDocument();
$dom->loadHTML($html);
$selects = $dom->getElementsByTagName('select');
$this->assertGreaterThanOrEqual(1, $selects->count(), 'There is no <select> in the output.');
foreach ($selects as $select) {
if ($select->getAttribute('name') == $expectation->name) {
$options = $select->getElementsByTagName('option');