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..c62f90399b7ec8d5c1689df0a87e1bde214ecec0 --- /dev/null +++ b/tests/ScormScorerawTestCase.php @@ -0,0 +1,12 @@ +<?php namespace Tests; + +class ScormScorerawTest extends TestCase { + protected function constructInput() { + return array_merge(parent::constructInput(), [ + 'objecttable' => 'scorm_scoes_track', + 'objectid' => 1, + 'eventname' => '\mod_scorm\event\scoreraw_submitted', + 'other' => 'a:3:{s:9:"attemptid";i:2;s:10:"cmielement";s:18:"cmi.core.score.raw";s:8:"cmivalue";s:1:"0";}', + ]); + } +} diff --git a/tests/ScormStatusTestCase.php b/tests/ScormStatusTestCase.php new file mode 100644 index 0000000000000000000000000000000000000000..5ef3da755f816bfdd892150f6606efe56424c50a --- /dev/null +++ b/tests/ScormStatusTestCase.php @@ -0,0 +1,12 @@ +<?php namespace Tests; + +class ScormStatusTest extends TestCase { + protected function constructInput() { + return array_merge(parent::constructInput(), [ + 'objecttable' => 'scorm_scoes_track', + 'objectid' => 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";}'; + ]); + } +}