MDL-61364 question: adjust code and fix phpunit errors
This commit is contained in:
@@ -119,6 +119,7 @@ abstract class question_test_helper {
|
||||
$catcontext = context::instance_by_id($cat->contextid, MUST_EXIST);
|
||||
$contexts = new question_edit_contexts($catcontext);
|
||||
$dataforformconstructor = new stdClass();
|
||||
$dataforformconstructor->createdby = $questiondata->createdby;
|
||||
$dataforformconstructor->qtype = $questiondata->qtype;
|
||||
$dataforformconstructor->contextid = $questiondata->contextid = $catcontext->id;
|
||||
$dataforformconstructor->category = $questiondata->category = $cat->id;
|
||||
|
||||
Reference in New Issue
Block a user