mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-68736 h5pactivity: remove legacy log method
This commit is contained in:
parent
fd840ab59c
commit
734bf378a5
@ -55,16 +55,6 @@ class statement_received extends \core\event\base {
|
||||
return get_string('statement_received', 'mod_h5pactivity');
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace add_to_log() statement.
|
||||
*
|
||||
* @return array of parameters to be passed to legacy add_to_log() function.
|
||||
*/
|
||||
protected function get_legacy_logdata() {
|
||||
return [$this->courseid, 'h5pactivity', 'statement received', 'grade.php?user=' . $this->userid,
|
||||
0, $this->contextinstanceid];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns non-localised description of what happened.
|
||||
*
|
||||
|
@ -72,9 +72,6 @@ class statement_received_testcase extends advanced_testcase {
|
||||
$this->assertInstanceOf('\mod_h5pactivity\event\statement_received', $event);
|
||||
$this->assertEquals(context_module::instance($activity->cmid), $event->get_context());
|
||||
$this->assertEquals($activity->id, $event->objectid);
|
||||
$expected = [$course->id, 'h5pactivity', 'statement received',
|
||||
'grade.php?user=' . $USER->id, 0, $activity->cmid];
|
||||
$this->assertEventLegacyLogData($expected, $event);
|
||||
$this->assertEventContextNotUsed($event);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user