MDL-27649 support question variants as a first-class concept in the question engine.
This commit is contained in:
@@ -42,7 +42,7 @@ class qbehaviour_missing_test extends UnitTestCase {
|
||||
$qa = new question_attempt(test_question_maker::make_a_truefalse_question(), 0);
|
||||
$behaviour = new qbehaviour_missing($qa, 'deferredfeedback');
|
||||
$this->expectException();
|
||||
$behaviour->init_first_step(new question_attempt_step(array()));
|
||||
$behaviour->init_first_step(new question_attempt_step(array()), 1);
|
||||
}
|
||||
|
||||
public function test_missing_cannot_process() {
|
||||
@@ -62,15 +62,15 @@ class qbehaviour_missing_test extends UnitTestCase {
|
||||
public function test_render_missing() {
|
||||
$records = testing_db_record_builder::build_db_records(array(
|
||||
array('id', 'questionattemptid', 'contextid', 'questionusageid', 'slot',
|
||||
'behaviour', 'questionid', 'maxmark', 'minfraction', 'flagged',
|
||||
'behaviour', 'questionid', 'variant', 'maxmark', 'minfraction', 'flagged',
|
||||
'questionsummary', 'rightanswer', 'responsesummary',
|
||||
'timemodified', 'attemptstepid', 'sequencenumber', 'state', 'fraction',
|
||||
'timecreated', 'userid', 'name', 'value'),
|
||||
array(1, 1, 123, 1, 1, 'strangeunknown', -1, 2.0000000, 0.0000000, 0, '', '', '',
|
||||
array(1, 1, 123, 1, 1, 'strangeunknown', -1, 1, 2.0000000, 0.0000000, 0, '', '', '',
|
||||
1256233790, 1, 0, 'todo', null, 1256233700, 1, '_order', '1,2,3'),
|
||||
array(2, 1, 123, 1, 1, 'strangeunknown', -1, 2.0000000, 0.0000000, 0, '', '', '',
|
||||
array(2, 1, 123, 1, 1, 'strangeunknown', -1, 1, 2.0000000, 0.0000000, 0, '', '', '',
|
||||
1256233790, 2, 1, 'complete', 0.50, 1256233705, 1, '-submit', '1'),
|
||||
array(3, 1, 123, 1, 1, 'strangeunknown', -1, 2.0000000, 0.0000000, 0, '', '', '',
|
||||
array(3, 1, 123, 1, 1, 'strangeunknown', -1, 1, 2.0000000, 0.0000000, 0, '', '', '',
|
||||
1256233790, 2, 1, 'complete', 0.50, 1256233705, 1, 'choice0', '1'),
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user