Skip to content
Snippets Groups Projects
Commit 708d4241 authored by David Pesce's avatar David Pesce Committed by GitHub
Browse files

Merge pull request #80 from xAPI-vle/scorm-events

Incorporate SCORM events into logstore plugin
parents 581875b5 5e4cde8d
No related branches found
No related tags found
No related merge requests found
......@@ -7,4 +7,4 @@ abstract class AttemptTestCase extends TestCase {
'objectid' => 1,
]);
}
}
\ No newline at end of file
}
<?php namespace Tests;
class ScormScorerawTest extends TestCase {
protected function constructInput() {
return array_merge(parent::constructInput(), [
'objecttable' => 'scorm_scoes_track',
'objectid' => 1,
'contextinstanceid' => 1,
'eventname' => '\mod_scorm\event\scoreraw_submitted',
'other' => 'a:3:{s:9:"attemptid";i:1;s:10:"cmielement";s:18:"cmi.core.score.raw";s:8:"cmivalue";s:3:"100";}',
]);
}
}
<?php namespace Tests;
class ScormStatusTest extends TestCase {
protected function constructInput() {
return array_merge(parent::constructInput(), [
'objecttable' => 'scorm_scoes_track',
'objectid' => 1,
'contextinstanceid' => 1,
'eventname' => '\mod_scorm\event\status_submitted',
'other' => 'a:3:{s:9:"attemptid";i:2;s:10:"cmielement";s:22:"cmi.core.lesson_status";s:8:"cmivalue";s:6:"failed";}';
]);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment