Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 271... Línea 271...
271
    }
271
    }
Línea 272... Línea 272...
272
 
272
 
273
    /**
273
    /**
274
     * Add new users, courses and enrolments
274
     * Add new users, courses and enrolments
275
     */
275
     */
276
    public function test_users_are_enroled_on_courses() {
276
    public function test_users_are_enroled_on_courses(): void {
Línea 277... Línea 277...
277
        global $DB;
277
        global $DB;
278
 
278
 
279
        $prevnuserenrolments = $DB->count_records('user_enrolments');
279
        $prevnuserenrolments = $DB->count_records('user_enrolments');
Línea 299... Línea 299...
299
    }
299
    }
Línea 300... Línea 300...
300
 
300
 
301
    /**
301
    /**
302
     * Check that the unenrol actions are completely ignored when "unenrol" setting is disabled
302
     * Check that the unenrol actions are completely ignored when "unenrol" setting is disabled
303
     */
303
     */
304
    public function test_no_action_when_unenrol_disabled() {
304
    public function test_no_action_when_unenrol_disabled(): void {
Línea 305... Línea 305...
305
        global $DB;
305
        global $DB;
306
 
306
 
307
        $prevnuserenrolments = $DB->count_records('user_enrolments');
307
        $prevnuserenrolments = $DB->count_records('user_enrolments');
Línea 358... Línea 358...
358
    }
358
    }
Línea 359... Línea 359...
359
 
359
 
360
    /**
360
    /**
361
     * When a user has existing roles and enrolments, they are unaffected by IMS instructions for other courses
361
     * When a user has existing roles and enrolments, they are unaffected by IMS instructions for other courses
362
     */
362
     */
Línea 363... Línea 363...
363
    public function test_existing_roles_and_enrolments_unaffected() {
363
    public function test_existing_roles_and_enrolments_unaffected(): void {
Línea 364... Línea 364...
364
 
364
 
365
        global $DB;
365
        global $DB;
Línea 443... Línea 443...
443
    }
443
    }
Línea 444... Línea 444...
444
 
444
 
445
    /**
445
    /**
446
     * Enrolments alone are disabled
446
     * Enrolments alone are disabled
447
     */
447
     */
Línea 448... Línea 448...
448
    public function test_disable_enrolments_only() {
448
    public function test_disable_enrolments_only(): void {
Línea 449... Línea 449...
449
 
449
 
450
        global $DB;
450
        global $DB;
Línea 520... Línea 520...
520
    }
520
    }
Línea 521... Línea 521...
521
 
521
 
522
    /**
522
    /**
523
     * Enrolments are disabled but retained) and roles removed
523
     * Enrolments are disabled but retained) and roles removed
524
     */
524
     */
Línea 525... Línea 525...
525
    public function test_disable_enrolments_and_remove_roles() {
525
    public function test_disable_enrolments_and_remove_roles(): void {
Línea 526... Línea 526...
526
 
526
 
527
        global $DB;
527
        global $DB;
Línea 598... Línea 598...
598
    }
598
    }
Línea 599... Línea 599...
599
 
599
 
600
    /**
600
    /**
601
     * Enrolments and roles are deleted for specified user
601
     * Enrolments and roles are deleted for specified user
602
     */
602
     */
Línea 603... Línea 603...
603
    public function test_delete_roles_and_enrolments() {
603
    public function test_delete_roles_and_enrolments(): void {
Línea 604... Línea 604...
604
 
604
 
605
        global $DB;
605
        global $DB;