mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-46442 mod_assign: Notify users when grades are changed
This commit is contained in:
parent
8f06fffbe1
commit
a4b10a5244
2 changed files with 11 additions and 3 deletions
|
@ -887,6 +887,13 @@ class mod_assign_locallib_testcase extends mod_assign_base_testcase {
|
|||
$this->assertEquals(2, count($messages));
|
||||
$this->assertEquals(1, $messages[0]->notification);
|
||||
$this->assertEquals($assign->get_instance()->name, $messages[0]->contexturlname);
|
||||
|
||||
// Regrading a grade causes a notification to the user.
|
||||
$data->sendstudentnotifications = true;
|
||||
$assign->testable_apply_grade_to_user($data, $this->students[0]->id, 0);
|
||||
assign::cron();
|
||||
$messages = $sink->get_messages();
|
||||
$this->assertEquals(3, count($messages));
|
||||
}
|
||||
|
||||
public function test_is_graded() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue