Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 35... Línea 35...
35
 *
35
 *
36
 * @package    mod_scorm
36
 * @package    mod_scorm
37
 * @copyright  2013 onwards Ankit Agarwal
37
 * @copyright  2013 onwards Ankit Agarwal
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
39
 */
39
 */
40
class events_test extends \advanced_testcase {
40
final class events_test extends \advanced_testcase {
Línea 41... Línea 41...
41
 
41
 
42
    /** @var stdClass store course object */
42
    /** @var stdClass store course object */
Línea 43... Línea 43...
43
    protected $eventcourse;
43
    protected $eventcourse;
Línea 50... Línea 50...
50
 
50
 
51
    /** @var stdClass store course module object */
51
    /** @var stdClass store course module object */
Línea 52... Línea 52...
52
    protected $eventcm;
52
    protected $eventcm;
-
 
53
 
53
 
54
    protected function setUp(): void {
54
    protected function setUp(): void {
55
        parent::setUp();
55
        $this->setAdminUser();
56
        $this->setAdminUser();
56
        $this->eventcourse = $this->getDataGenerator()->create_course();
57
        $this->eventcourse = $this->getDataGenerator()->create_course();
57
        $this->eventuser = $this->getDataGenerator()->create_user();
58
        $this->eventuser = $this->getDataGenerator()->create_user();
Línea 217... Línea 218...
217
    }
218
    }
Línea 218... Línea 219...
218
 
219
 
219
    /**
220
    /**
220
     * dataProvider for test_scoreraw_submitted_event_validations().
221
     * dataProvider for test_scoreraw_submitted_event_validations().
221
     */
222
     */
222
    public function get_scoreraw_submitted_event_validations() {
223
    public static function get_scoreraw_submitted_event_validations(): array {
223
        return array(
224
        return array(
224
            'scoreraw_submitted => missing cmielement' => array(
225
            'scoreraw_submitted => missing cmielement' => array(
225
                null, '50',
226
                null, '50',
226
                "Event validation should not allow \\mod_scorm\\event\\scoreraw_submitted " .
227
                "Event validation should not allow \\mod_scorm\\event\\scoreraw_submitted " .
Línea 304... Línea 305...
304
    }
305
    }
Línea 305... Línea 306...
305
 
306
 
306
    /**
307
    /**
307
     * dataProvider for test_status_submitted_event_validations().
308
     * dataProvider for test_status_submitted_event_validations().
308
     */
309
     */
309
    public function get_status_submitted_event_validations() {
310
    public static function get_status_submitted_event_validations(): array {
310
        return array(
311
        return array(
311
            'status_submitted => missing cmielement' => array(
312
            'status_submitted => missing cmielement' => array(
312
                null, 'passed',
313
                null, 'passed',
313
                "Event validation should not allow \\mod_scorm\\event\\status_submitted " .
314
                "Event validation should not allow \\mod_scorm\\event\\status_submitted " .