diff --git a/question/format/xml/simpletest/testxmlformat.php b/question/format/xml/simpletest/testxmlformat.php index 9ab295fac37..c82027ba4ff 100644 --- a/question/format/xml/simpletest/testxmlformat.php +++ b/question/format/xml/simpletest/testxmlformat.php @@ -306,6 +306,7 @@ END; $expectedq->attachments = 0; $expectedq->graderinfo['text'] = ''; $expectedq->graderinfo['format'] = FORMAT_MOODLE; + $expectedq->graderinfo['files'] = array(); $this->assert(new CheckSpecifiedFieldsExpectation($expectedq), $q); } @@ -350,6 +351,7 @@ END; $expectedq->attachments = -1; $expectedq->graderinfo['text'] = '

Grade generously!

'; $expectedq->graderinfo['format'] = FORMAT_HTML; + $expectedq->graderinfo['files'] = array(); $this->assert(new CheckSpecifiedFieldsExpectation($expectedq), $q); }