diff --git a/tests/AttemptTestCase.php b/tests/AttemptTestCase.php index 1fb48b66da721a1e7e4b71efaccb7c1647470ec3..bebc1a28d498ab41f7b6cb66e9141d2a1af6a610 100644 --- a/tests/AttemptTestCase.php +++ b/tests/AttemptTestCase.php @@ -7,4 +7,4 @@ abstract class AttemptTestCase extends TestCase { 'objectid' => 1, ]); } -} \ No newline at end of file +} diff --git a/tests/ScormScorerawTestCase.php b/tests/ScormScorerawTestCase.php new file mode 100644 index 0000000000000000000000000000000000000000..547f60917585972c2ccbdef6049b600bddba5f5c --- /dev/null +++ b/tests/ScormScorerawTestCase.php @@ -0,0 +1,13 @@ +<?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";}', + ]); + } +} diff --git a/tests/ScormStatusTestCase.php b/tests/ScormStatusTestCase.php new file mode 100644 index 0000000000000000000000000000000000000000..240204cef432723b5cffea93eca8f0502904e310 --- /dev/null +++ b/tests/ScormStatusTestCase.php @@ -0,0 +1,13 @@ +<?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";}'; + ]); + } +}