Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 62... Línea 62...
62
    }
62
    }
Línea 63... Línea 63...
63
 
63
 
64
    /**
64
    /**
65
     * Test create_cohorts
65
     * Test create_cohorts
66
     */
66
     */
67
    public function test_create_cohorts() {
67
    public function test_create_cohorts(): void {
Línea 68... Línea 68...
68
        global $DB;
68
        global $DB;
Línea 69... Línea 69...
69
 
69
 
Línea 198... Línea 198...
198
    }
198
    }
Línea 199... Línea 199...
199
 
199
 
200
    /**
200
    /**
201
     * Test delete_cohorts
201
     * Test delete_cohorts
202
     */
202
     */
203
    public function test_delete_cohorts() {
203
    public function test_delete_cohorts(): void {
Línea 204... Línea 204...
204
        global $USER, $CFG, $DB;
204
        global $USER, $CFG, $DB;
Línea 205... Línea 205...
205
 
205
 
Línea 230... Línea 230...
230
    }
230
    }
Línea 231... Línea 231...
231
 
231
 
232
    /**
232
    /**
233
     * Test get_cohorts
233
     * Test get_cohorts
234
     */
234
     */
235
    public function test_get_cohorts() {
235
    public function test_get_cohorts(): void {
Línea 236... Línea 236...
236
        $this->resetAfterTest(true);
236
        $this->resetAfterTest(true);
237
 
237
 
Línea 313... Línea 313...
313
    }
313
    }
Línea 314... Línea 314...
314
 
314
 
315
    /**
315
    /**
316
     * Test update_cohorts
316
     * Test update_cohorts
317
     */
317
     */
318
    public function test_update_cohorts() {
318
    public function test_update_cohorts(): void {
Línea 319... Línea 319...
319
        global $DB;
319
        global $DB;
Línea 320... Línea 320...
320
 
320
 
Línea 412... Línea 412...
412
    }
412
    }
Línea 413... Línea 413...
413
 
413
 
414
    /**
414
    /**
415
     * Verify handling of 'id' param.
415
     * Verify handling of 'id' param.
416
     */
416
     */
417
    public function test_update_cohorts_invalid_id_param() {
417
    public function test_update_cohorts_invalid_id_param(): void {
418
        $this->resetAfterTest(true);
418
        $this->resetAfterTest(true);
Línea 419... Línea 419...
419
        $cohort = self::getDataGenerator()->create_cohort();
419
        $cohort = self::getDataGenerator()->create_cohort();
420
 
420
 
Línea 442... Línea 442...
442
    }
442
    }
Línea 443... Línea 443...
443
 
443
 
444
    /**
444
    /**
445
     * Test update_cohorts without permission on the dest category.
445
     * Test update_cohorts without permission on the dest category.
446
     */
446
     */
447
    public function test_update_cohorts_missing_dest() {
447
    public function test_update_cohorts_missing_dest(): void {
Línea 448... Línea 448...
448
        global $USER, $CFG, $DB;
448
        global $USER, $CFG, $DB;
Línea 449... Línea 449...
449
 
449
 
Línea 483... Línea 483...
483
    }
483
    }
Línea 484... Línea 484...
484
 
484
 
485
    /**
485
    /**
486
     * Test update_cohorts without permission on the src category.
486
     * Test update_cohorts without permission on the src category.
487
     */
487
     */
488
    public function test_update_cohorts_missing_src() {
488
    public function test_update_cohorts_missing_src(): void {
Línea 489... Línea 489...
489
        global $USER, $CFG, $DB;
489
        global $USER, $CFG, $DB;
Línea 490... Línea 490...
490
 
490
 
Línea 524... Línea 524...
524
    }
524
    }
Línea 525... Línea 525...
525
 
525
 
526
    /**
526
    /**
527
     * Test add_cohort_members
527
     * Test add_cohort_members
528
     */
528
     */
529
    public function test_add_cohort_members() {
529
    public function test_add_cohort_members(): void {
Línea 530... Línea 530...
530
        global $DB;
530
        global $DB;
Línea 531... Línea 531...
531
 
531
 
Línea 575... Línea 575...
575
    }
575
    }
Línea 576... Línea 576...
576
 
576
 
577
    /**
577
    /**
578
     * Test delete_cohort_members
578
     * Test delete_cohort_members
579
     */
579
     */
580
    public function test_delete_cohort_members() {
580
    public function test_delete_cohort_members(): void {
Línea 581... Línea 581...
581
        global $DB;
581
        global $DB;
Línea 582... Línea 582...
582
 
582
 
Línea 632... Línea 632...
632
    }
632
    }
Línea 633... Línea 633...
633
 
633
 
634
    /**
634
    /**
635
     * Search cohorts.
635
     * Search cohorts.
636
     */
636
     */
637
    public function test_search_cohorts() {
637
    public function test_search_cohorts(): void {
638
        global $DB, $CFG;
638
        global $DB, $CFG;
Línea 639... Línea 639...
639
        $this->resetAfterTest(true);
639
        $this->resetAfterTest(true);
640
 
640