Merge branch 'MDL-29484' of git://github.com/timhunt/moodle
authorSam Hemelryk <sam@moodle.com>
Mon, 26 Sep 2011 00:53:17 +0000 (13:53 +1300)
committerSam Hemelryk <sam@moodle.com>
Mon, 26 Sep 2011 00:53:17 +0000 (13:53 +1300)
question/format/xml/simpletest/testxmlformat.php

index 9ab295f..c82027b 100644 (file)
@@ -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'] = '<p>Grade <b>generously</b>!</p>';
         $expectedq->graderinfo['format'] = FORMAT_HTML;
+        $expectedq->graderinfo['files'] = array();
 
         $this->assert(new CheckSpecifiedFieldsExpectation($expectedq), $q);
     }