Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 66... Línea 66...
66
    }
66
    }
Línea 67... Línea 67...
67
 
67
 
68
    /**
68
    /**
69
     * Test comment_created event.
69
     * Test comment_created event.
70
     */
70
     */
71
    public function test_comment_created() {
71
    public function test_comment_created(): void {
Línea 72... Línea 72...
72
        $this->setUp();
72
        $this->setUp();
73
 
73
 
Línea 89... Línea 89...
89
    }
89
    }
Línea 90... Línea 90...
90
 
90
 
91
    /**
91
    /**
92
     * Test comment_deleted event.
92
     * Test comment_deleted event.
93
     */
93
     */
94
    public function test_comment_deleted() {
94
    public function test_comment_deleted(): void {
Línea 95... Línea 95...
95
        $this->setUp();
95
        $this->setUp();
96
 
96
 
Línea 118... Línea 118...
118
    }
118
    }
Línea 119... Línea 119...
119
 
119
 
120
    /**
120
    /**
121
     * Test comment_viewed event.
121
     * Test comment_viewed event.
122
     */
122
     */
123
    public function test_comment_viewed() {
123
    public function test_comment_viewed(): void {
124
        // There is no proper API to call or trigger this event, so simulating event
124
        // There is no proper API to call or trigger this event, so simulating event
Línea 125... Línea 125...
125
        // to check if event returns the right information.
125
        // to check if event returns the right information.
126
 
126
 
Línea 147... Línea 147...
147
    }
147
    }
Línea 148... Línea 148...
148
 
148
 
149
    /**
149
    /**
150
     * Test instances_list_viewed event.
150
     * Test instances_list_viewed event.
151
     */
151
     */
152
    public function test_course_module_instance_list_viewed() {
152
    public function test_course_module_instance_list_viewed(): void {
153
        // There is no proper API to call or trigger this event, so simulating event
153
        // There is no proper API to call or trigger this event, so simulating event
Línea 154... Línea 154...
154
        // to check if event returns the right information.
154
        // to check if event returns the right information.
155
 
155
 
Línea 172... Línea 172...
172
    }
172
    }
Línea 173... Línea 173...
173
 
173
 
174
    /**
174
    /**
175
     * Test course_module_viewed event.
175
     * Test course_module_viewed event.
176
     */
176
     */
177
    public function test_course_module_viewed() {
177
    public function test_course_module_viewed(): void {
178
        // There is no proper API to call or trigger this event, so simulating event
178
        // There is no proper API to call or trigger this event, so simulating event
Línea 179... Línea 179...
179
        // to check if event returns the right information.
179
        // to check if event returns the right information.
180
 
180
 
Línea 201... Línea 201...
201
    }
201
    }
Línea 202... Línea 202...
202
 
202
 
203
    /**
203
    /**
204
     * Test page_viewed event.
204
     * Test page_viewed event.
205
     */
205
     */
206
    public function test_page_viewed() {
206
    public function test_page_viewed(): void {
207
        // There is no proper API to call or trigger this event, so simulating event
207
        // There is no proper API to call or trigger this event, so simulating event
Línea 208... Línea 208...
208
        // to check if event returns the right information.
208
        // to check if event returns the right information.
Línea 232... Línea 232...
232
    }
232
    }
Línea 233... Línea 233...
233
 
233
 
234
    /**
234
    /**
235
     * Test page_viewed event for prettypage view.
235
     * Test page_viewed event for prettypage view.
236
     */
236
     */
237
    public function test_pretty_page_viewed() {
237
    public function test_pretty_page_viewed(): void {
238
        // There is no proper API to call or trigger this event, so simulating event
238
        // There is no proper API to call or trigger this event, so simulating event
Línea 239... Línea 239...
239
        // to check if event returns the right information.
239
        // to check if event returns the right information.
Línea 264... Línea 264...
264
    }
264
    }
Línea 265... Línea 265...
265
 
265
 
266
    /**
266
    /**
267
     * Test page_created event.
267
     * Test page_created event.
268
     */
268
     */
269
    public function test_page_created() {
269
    public function test_page_created(): void {
Línea 270... Línea 270...
270
        global $USER;
270
        global $USER;
Línea 271... Línea 271...
271
 
271
 
Línea 287... Línea 287...
287
    }
287
    }
Línea 288... Línea 288...
288
 
288
 
289
    /**
289
    /**
290
     * Test page_deleted and page_version_deleted and page_locks_deleted event.
290
     * Test page_deleted and page_version_deleted and page_locks_deleted event.
291
     */
291
     */
292
    public function test_page_deleted() {
292
    public function test_page_deleted(): void {
Línea 293... Línea 293...
293
        global $DB;
293
        global $DB;
Línea 294... Línea 294...
294
 
294
 
Línea 343... Línea 343...
343
    }
343
    }
Línea 344... Línea 344...
344
 
344
 
345
    /**
345
    /**
346
     * Test page_updated event.
346
     * Test page_updated event.
347
     */
347
     */
348
    public function test_page_updated() {
348
    public function test_page_updated(): void {
Línea 349... Línea 349...
349
        global $USER;
349
        global $USER;
Línea 350... Línea 350...
350
 
350
 
Línea 367... Línea 367...
367
    }
367
    }
Línea 368... Línea 368...
368
 
368
 
369
    /**
369
    /**
370
     * Test page_diff_viewed event.
370
     * Test page_diff_viewed event.
371
     */
371
     */
372
    public function test_page_diff_viewed() {
372
    public function test_page_diff_viewed(): void {
373
        // There is no proper API to call or trigger this event, so simulating event
373
        // There is no proper API to call or trigger this event, so simulating event
Línea 374... Línea 374...
374
        // to check if event returns the right information.
374
        // to check if event returns the right information.
Línea 402... Línea 402...
402
    }
402
    }
Línea 403... Línea 403...
403
 
403
 
404
    /**
404
    /**
405
     * Test page_history_viewed event.
405
     * Test page_history_viewed event.
406
     */
406
     */
407
    public function test_page_history_viewed() {
407
    public function test_page_history_viewed(): void {
408
        // There is no proper API to call or trigger this event, so simulating event
408
        // There is no proper API to call or trigger this event, so simulating event
Línea 409... Línea 409...
409
        // to check if event returns the right information.
409
        // to check if event returns the right information.
Línea 433... Línea 433...
433
    }
433
    }
Línea 434... Línea 434...
434
 
434
 
435
    /**
435
    /**
436
     * Test page_map_viewed event.
436
     * Test page_map_viewed event.
437
     */
437
     */
438
    public function test_page_map_viewed() {
438
    public function test_page_map_viewed(): void {
439
        // There is no proper API to call or trigger this event, so simulating event
439
        // There is no proper API to call or trigger this event, so simulating event
Línea 440... Línea 440...
440
        // to check if event returns the right information.
440
        // to check if event returns the right information.
Línea 468... Línea 468...
468
    }
468
    }
Línea 469... Línea 469...
469
 
469
 
470
    /**
470
    /**
471
     * Test page_version_viewed event.
471
     * Test page_version_viewed event.
472
     */
472
     */
473
    public function test_page_version_viewed() {
473
    public function test_page_version_viewed(): void {
474
        // There is no proper API to call or trigger this event, so simulating event
474
        // There is no proper API to call or trigger this event, so simulating event
Línea 475... Línea 475...
475
        // to check if event returns the right information.
475
        // to check if event returns the right information.
Línea 503... Línea 503...
503
    }
503
    }
Línea 504... Línea 504...
504
 
504
 
505
    /**
505
    /**
506
     * Test page_version_restored event.
506
     * Test page_version_restored event.
507
     */
507
     */
508
    public function test_page_version_restored() {
508
    public function test_page_version_restored(): void {
Línea 509... Línea 509...
509
        $this->setUp();
509
        $this->setUp();
510
 
510
 
511
        $page = $this->wikigenerator->create_first_page($this->wiki);
511
        $page = $this->wikigenerator->create_first_page($this->wiki);