mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-68736-master' of git://github.com/ferranrecio/moodle
This commit is contained in:
commit
68d39e634f
2 changed files with 0 additions and 13 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue