Merge branch 'MDL-68736-master' of git://github.com/ferranrecio/moodle

This commit is contained in:
Sara Arjona 2021-02-09 15:05:29 +01:00
commit 68d39e634f
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);
}
}