MDL-6535 new features for the essay qtype. Part I DB tables and editing form.
[moodle.git] / question / engine / simpletest / helpers.php
index dd1bc95..4c29cca 100644 (file)
@@ -270,6 +270,12 @@ class test_question_maker {
         $essay->penalty = 0;
         $essay->qtype = question_bank::get_qtype('essay');
 
+        $essay->responseformat = 'editor';
+        $essay->responsefieldlines = 15;
+        $essay->attachments = 0;
+        $essay->graderinfo = '';
+        $essay->graderinfoformat = FORMAT_MOODLE;
+
         return $essay;
     }