Skip to content
Permalink
Browse files

Merge branch 'm36_MDL-63727_Wrong_SCO_Launched_Link' of https://githu…

  • Loading branch information...
andrewnicols committed Oct 31, 2018
2 parents 8aae5e1 + f9df004 commit 7b70c6bc48be8dee6fe6d4ca5adfc5e00f5183bd
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/scorm/classes/event/sco_launched.php
  2. +1 −1 mod/scorm/tests/externallib_test.php
@@ -76,7 +76,7 @@ public static function get_name() {
* @return \moodle_url
*/
public function get_url() {
return new \moodle_url('/mod/scorm/player.php', array('id' => $this->contextinstanceid, 'scoid' => $this->objectid));
return new \moodle_url('/mod/scorm/player.php', array('cm' => $this->contextinstanceid, 'scoid' => $this->objectid));
}
/**
@@ -855,7 +855,7 @@ public function test_launch_sco() {
// Checking that the event contains the expected values.
$this->assertInstanceOf('\mod_scorm\event\sco_launched', $event);
$this->assertEquals($this->context, $event->get_context());
$moodleurl = new \moodle_url('/mod/scorm/player.php', array('id' => $this->cm->id, 'scoid' => $sco->id));
$moodleurl = new \moodle_url('/mod/scorm/player.php', array('cm' => $this->cm->id, 'scoid' => $sco->id));
$this->assertEquals($moodleurl, $event->get_url());
$this->assertEventContextNotUsed($event);
$this->assertNotEmpty($event->get_name());

0 comments on commit 7b70c6b

Please sign in to comment.
You can’t perform that action at this time.