MDL-61364 question: adjust code and fix phpunit errors

This commit is contained in:
Simey Lameze 2018-03-26 11:31:24 +08:00
parent e7329cd026
commit 2cf7bde8e9
5 changed files with 7 additions and 1 deletions

View file

@ -209,9 +209,11 @@ class qtype_calculatedsimple_test_helper extends question_test_helper {
}
public function get_calculatedsimple_question_data_sumwithvariants() {
global $USER;
$q = new stdClass();
$q->name = 'Calculated simple';
$q->createdby = $USER->id;
$q->questiontext = '<p>This is a simple sum of two variables.</p>';
$q->questiontextformat = '1';
$q->generalfeedback = '<p>The answer is  {a} + {b}</p>';