Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 42... Línea 42...
42
 
42
 
43
    public function setUp(): void {
43
    public function setUp(): void {
44
        $this->resetAfterTest();
44
        $this->resetAfterTest();
Línea 45... Línea 45...
45
    }
45
    }
46
 
46
 
Línea 47... Línea 47...
47
    public function test_scorm_update_calendar() {
47
    public function test_scorm_update_calendar(): void {
Línea 48... Línea 48...
48
        global $DB;
48
        global $DB;
Línea 75... Línea 75...
75
        $this->assertEquals(DATA_EVENT_TYPE_OPEN, $event->eventtype);
75
        $this->assertEquals(DATA_EVENT_TYPE_OPEN, $event->eventtype);
76
        $this->assertEquals($time, $event->timestart);
76
        $this->assertEquals($time, $event->timestart);
77
        $this->assertEquals($time, $event->timesort);
77
        $this->assertEquals($time, $event->timesort);
78
    }
78
    }
Línea 79... Línea 79...
79
 
79
 
80
    public function test_scorm_update_calendar_time_open_update() {
80
    public function test_scorm_update_calendar_time_open_update(): void {
Línea 81... Línea 81...
81
        global $DB;
81
        global $DB;
Línea 82... Línea 82...
82
 
82
 
Línea 112... Línea 112...
112
        $this->assertEquals(DATA_EVENT_TYPE_OPEN, $event->eventtype);
112
        $this->assertEquals(DATA_EVENT_TYPE_OPEN, $event->eventtype);
113
        $this->assertEquals($time + DAYSECS, $event->timestart);
113
        $this->assertEquals($time + DAYSECS, $event->timestart);
114
        $this->assertEquals($time + DAYSECS, $event->timesort);
114
        $this->assertEquals($time + DAYSECS, $event->timesort);
115
    }
115
    }
Línea 116... Línea 116...
116
 
116
 
117
    public function test_scorm_update_calendar_time_open_delete() {
117
    public function test_scorm_update_calendar_time_open_delete(): void {
Línea 118... Línea 118...
118
        global $DB;
118
        global $DB;
Línea 119... Línea 119...
119
 
119
 
Línea 140... Línea 140...
140
 
140
 
141
        // Confirm the event was deleted.
141
        // Confirm the event was deleted.
142
        $this->assertEquals(0, $DB->count_records('event'));
142
        $this->assertEquals(0, $DB->count_records('event'));
Línea 143... Línea 143...
143
    }
143
    }
144
 
144
 
Línea 145... Línea 145...
145
    public function test_scorm_update_calendar_time_close() {
145
    public function test_scorm_update_calendar_time_close(): void {
Línea 146... Línea 146...
146
        global $DB;
146
        global $DB;
Línea 173... Línea 173...
173
        $this->assertEquals(DATA_EVENT_TYPE_CLOSE, $event->eventtype);
173
        $this->assertEquals(DATA_EVENT_TYPE_CLOSE, $event->eventtype);
174
        $this->assertEquals($time, $event->timestart);
174
        $this->assertEquals($time, $event->timestart);
175
        $this->assertEquals($time, $event->timesort);
175
        $this->assertEquals($time, $event->timesort);
176
    }
176
    }
Línea 177... Línea 177...
177
 
177
 
178
    public function test_scorm_update_calendar_time_close_update() {
178
    public function test_scorm_update_calendar_time_close_update(): void {
Línea 179... Línea 179...
179
        global $DB;
179
        global $DB;
Línea 180... Línea 180...
180
 
180
 
Línea 210... Línea 210...
210
        $this->assertEquals(DATA_EVENT_TYPE_CLOSE, $event->eventtype);
210
        $this->assertEquals(DATA_EVENT_TYPE_CLOSE, $event->eventtype);
211
        $this->assertEquals($time + DAYSECS, $event->timestart);
211
        $this->assertEquals($time + DAYSECS, $event->timestart);
212
        $this->assertEquals($time + DAYSECS, $event->timesort);
212
        $this->assertEquals($time + DAYSECS, $event->timesort);
213
    }
213
    }
Línea 214... Línea 214...
214
 
214
 
215
    public function test_scorm_update_calendar_time_close_delete() {
215
    public function test_scorm_update_calendar_time_close_delete(): void {
Línea 216... Línea 216...
216
        global $DB;
216
        global $DB;
Línea 217... Línea 217...
217
 
217