Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 73... Línea 73...
73
    }
73
    }
Línea 74... Línea 74...
74
 
74
 
75
    /**
75
    /**
76
     * Test confirm_user
76
     * Test confirm_user
77
     */
77
     */
78
    public function test_confirm_user() {
78
    public function test_confirm_user(): void {
Línea 79... Línea 79...
79
        global $DB;
79
        global $DB;
80
 
80
 
81
        $username = 'pepe';
81
        $username = 'pepe';
Línea 113... Línea 113...
113
    }
113
    }
Línea 114... Línea 114...
114
 
114
 
115
    /**
115
    /**
116
     * Test age digital consent not enabled.
116
     * Test age digital consent not enabled.
117
     */
117
     */
118
    public function test_age_digital_consent_verification_is_not_enabled() {
118
    public function test_age_digital_consent_verification_is_not_enabled(): void {
Línea 119... Línea 119...
119
        global $CFG;
119
        global $CFG;
120
 
120
 
121
        $CFG->agedigitalconsentverification = 0;
121
        $CFG->agedigitalconsentverification = 0;
Línea 126... Línea 126...
126
    }
126
    }
Línea 127... Línea 127...
127
 
127
 
128
    /**
128
    /**
129
     * Test age digital consent is enabled.
129
     * Test age digital consent is enabled.
130
     */
130
     */
131
    public function test_age_digital_consent_verification_is_enabled() {
131
    public function test_age_digital_consent_verification_is_enabled(): void {
Línea 132... Línea 132...
132
        global $CFG;
132
        global $CFG;
133
 
133
 
134
        $CFG->agedigitalconsentverification = 1;
134
        $CFG->agedigitalconsentverification = 1;
Línea 139... Línea 139...
139
    }
139
    }
Línea 140... Línea 140...
140
 
140
 
141
    /**
141
    /**
142
     * Test resend_confirmation_email.
142
     * Test resend_confirmation_email.
143
     */
143
     */
144
    public function test_resend_confirmation_email() {
144
    public function test_resend_confirmation_email(): void {
Línea 145... Línea 145...
145
        global $DB;
145
        global $DB;
146
 
146
 
147
        $username = 'pepe';
147
        $username = 'pepe';
Línea 165... Línea 165...
165
    }
165
    }
Línea 166... Línea 166...
166
 
166
 
167
    /**
167
    /**
168
     * Test resend_confirmation_email invalid username.
168
     * Test resend_confirmation_email invalid username.
169
     */
169
     */
Línea 170... Línea 170...
170
    public function test_resend_confirmation_email_invalid_username() {
170
    public function test_resend_confirmation_email_invalid_username(): void {
171
 
171
 
172
        $username = 'pepe';
172
        $username = 'pepe';
173
        $password = 'abcdefAª.ªª!!3';
173
        $password = 'abcdefAª.ªª!!3';
Línea 188... Línea 188...
188
    }
188
    }
Línea 189... Línea 189...
189
 
189
 
190
    /**
190
    /**
191
     * Test resend_confirmation_email invalid password.
191
     * Test resend_confirmation_email invalid password.
192
     */
192
     */
Línea 193... Línea 193...
193
    public function test_resend_confirmation_email_invalid_password() {
193
    public function test_resend_confirmation_email_invalid_password(): void {
194
 
194
 
195
        $username = 'pepe';
195
        $username = 'pepe';
196
        $password = 'abcdefAª.ªª!!3';
196
        $password = 'abcdefAª.ªª!!3';
Línea 211... Línea 211...
211
    }
211
    }
Línea 212... Línea 212...
212
 
212
 
213
    /**
213
    /**
214
     * Test resend_confirmation_email already confirmed user.
214
     * Test resend_confirmation_email already confirmed user.
215
     */
215
     */
216
    public function test_resend_confirmation_email_already_confirmed_user() {
216
    public function test_resend_confirmation_email_already_confirmed_user(): void {
Línea 217... Línea 217...
217
        global $DB;
217
        global $DB;
218
 
218
 
219
        $username = 'pepe';
219
        $username = 'pepe';