MDL-68736 h5pactivity: remove legacy log method

This commit is contained in:
Ferran Recio 2021-01-25 15:12:42 +01:00
parent fd840ab59c
commit 734bf378a5
2 changed files with 0 additions and 13 deletions

View File

@ -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.
*

View File

@ -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);
}
}