Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 40... Línea 40...
40
    }
40
    }
Línea 41... Línea 41...
41
 
41
 
42
    /**
42
    /**
43
     * Test observer for course delete event.
43
     * Test observer for course delete event.
44
     */
44
     */
45
    public function test_course_deleted() {
45
    public function test_course_deleted(): void {
Línea 46... Línea 46...
46
        global $DB;
46
        global $DB;
47
 
47
 
Línea 115... Línea 115...
115
    }
115
    }
Línea 116... Línea 116...
116
 
116
 
117
    /**
117
    /**
118
     * This tests if writing of the events to the table tool_monitor_events is working fine.
118
     * This tests if writing of the events to the table tool_monitor_events is working fine.
119
     */
119
     */
120
    public function test_flush() {
120
    public function test_flush(): void {
Línea 121... Línea 121...
121
        global $DB;
121
        global $DB;
Línea 122... Línea 122...
122
 
122
 
Línea 213... Línea 213...
213
    }
213
    }
Línea 214... Línea 214...
214
 
214
 
215
    /**
215
    /**
216
     * Test the notification sending features.
216
     * Test the notification sending features.
217
     */
217
     */
Línea 218... Línea 218...
218
    public function test_process_event() {
218
    public function test_process_event(): void {
Línea 219... Línea 219...
219
 
219
 
220
        global $DB, $USER;
220
        global $DB, $USER;
Línea 350... Línea 350...
350
    }
350
    }
Línea 351... Línea 351...
351
 
351
 
352
    /**
352
    /**
353
     * Test that same events are not used twice to calculate conditions for a single subscription.
353
     * Test that same events are not used twice to calculate conditions for a single subscription.
354
     */
354
     */
355
    public function test_multiple_notification_not_sent() {
355
    public function test_multiple_notification_not_sent(): void {
Línea 356... Línea 356...
356
        global $USER;
356
        global $USER;
357
 
357
 
358
        $this->resetAfterTest();
358
        $this->resetAfterTest();
Línea 438... Línea 438...
438
    }
438
    }
Línea 439... Línea 439...
439
 
439
 
440
    /**
440
    /**
441
     * Tests for replace_placeholders method.
441
     * Tests for replace_placeholders method.
442
     */
442
     */
443
    public function test_replace_placeholders() {
443
    public function test_replace_placeholders(): void {
Línea 444... Línea 444...
444
        global $USER;
444
        global $USER;
445
 
445
 
446
        $this->resetAfterTest();
446
        $this->resetAfterTest();
Línea 523... Línea 523...
523
    }
523
    }
Línea 524... Línea 524...
524
 
524
 
525
    /**
525
    /**
526
     * Test observer for user delete event.
526
     * Test observer for user delete event.
527
     */
527
     */
528
    public function test_user_deleted() {
528
    public function test_user_deleted(): void {
Línea 529... Línea 529...
529
        global $DB;
529
        global $DB;
530
 
530
 
Línea 578... Línea 578...
578
    }
578
    }
Línea 579... Línea 579...
579
 
579
 
580
    /**
580
    /**
581
     * Test observer for course module delete event.
581
     * Test observer for course module delete event.
582
     */
582
     */
583
    public function test_course_module_deleted() {
583
    public function test_course_module_deleted(): void {
Línea 584... Línea 584...
584
        global $DB;
584
        global $DB;
585
 
585