From 770e4a467fbf44b8e5a063359f49559ea7fe4722 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 6 Mar 2013 09:27:11 +0000 Subject: [PATCH] MDL-38311 question manual grading: comment fixes. --- question/engine/questionusage.php | 1 + question/engine/tests/unitofwork_test.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/question/engine/questionusage.php b/question/engine/questionusage.php index c09083e2a9bf2..9fa6e0ce0b227 100644 --- a/question/engine/questionusage.php +++ b/question/engine/questionusage.php @@ -646,6 +646,7 @@ public function finish_all_questions($timestamp = null) { * @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); diff --git a/question/engine/tests/unitofwork_test.php b/question/engine/tests/unitofwork_test.php index f83de5ca6e486..027bf3f73d0a8 100644 --- a/question/engine/tests/unitofwork_test.php +++ b/question/engine/tests/unitofwork_test.php @@ -174,7 +174,7 @@ public function test_add_and_start_question() { 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()));