mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-38311' of git://github.com/timhunt/moodle
This commit is contained in:
commit
69d0129389
@ -646,6 +646,7 @@ class question_usage_by_activity {
|
||||
* @param string $comment the comment being added to the question attempt.
|
||||
* @param number $mark the mark that is being assigned. Can be null to just
|
||||
* add a comment.
|
||||
* @param int $commentformat one of the FORMAT_... constants. The format of $comment.
|
||||
*/
|
||||
public function manual_grade($slot, $comment, $mark, $commentformat = null) {
|
||||
$qa = $this->get_question_attempt($slot);
|
||||
|
@ -174,7 +174,7 @@ class question_engine_unit_of_work_test extends data_loading_method_test_base {
|
||||
|
||||
public function test_process_action() {
|
||||
|
||||
$this->quba->manual_grade($this->slot, 'Acutally, that is not quite right', 0.5, FORMAT_HTML);
|
||||
$this->quba->manual_grade($this->slot, 'Actually, that is not quite right', 0.5, FORMAT_HTML);
|
||||
|
||||
// Here, however, were we are adding a step to an existing qa, we do need to track that.
|
||||
$this->assertEquals(0, count($this->observer->get_attempts_added()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user