$this->get_does_not_contain_feedback_expectation());
// Simulate some data submitted by the student.
- $this->process_submission(array('answer' => 'This is my wonderful essay!'));
+ $this->process_submission(array('answer' => 'This is my wonderful essay!', 'answerformat' => FORMAT_PLAIN));
// Verify.
$this->check_current_state(question_state::$complete);
// Process the same data again, check it does not create a new step.
$numsteps = $this->get_step_count();
- $this->process_submission(array('answer' => 'This is my wonderful essay!'));
+ $this->process_submission(array('answer' => 'This is my wonderful essay!', 'answerformat' => FORMAT_PLAIN));
$this->check_step_count($numsteps);
// Process different data, check it creates a new step.
$this->check_current_state(question_state::$todo);
// Change back, check it creates a new step.
- $this->process_submission(array('answer' => 'This is my wonderful essay!'));
+ $this->process_submission(array('answer' => 'This is my wonderful essay!', 'answerformat' => FORMAT_PLAIN));
$this->check_step_count($numsteps + 2);
// Finish the attempt.
$this->check_current_mark(null);
// Simulate some data submitted by the student.
- $this->process_submission(array('answer' => 'This is my wonderful essay!'));
+ $this->process_submission(array('answer' => 'This is my wonderful essay!', 'answerformat' => FORMAT_PLAIN));
// Verify.
$this->check_current_state(question_state::$complete);
$this->get_does_not_contain_feedback_expectation());
// Simulate some data submitted by the student.
- $this->process_submission(array('answer' => 'This is my wonderful essay!'));
+ $this->process_submission(array('answer' => 'This is my wonderful essay!', 'answerformat' => FORMAT_PLAIN));
// Verify.
$this->check_current_state(question_state::$complete);
$longstring = str_repeat('0123456789', 50);
$essay = test_question_maker::make_an_essay_question();
$this->assertEquals($longstring,
- $essay->summarise_response(array('answer' => $longstring)));
+ $essay->summarise_response(array('answer' => $longstring, 'answerformat' => FORMAT_PLAIN)));
}
public function test_is_same_response() {