Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 50... Línea 50...
50
    }
50
    }
Línea 51... Línea 51...
51
 
51
 
52
    /**
52
    /**
53
     * Check that a user context is returned if there is any user data for this user.
53
     * Check that a user context is returned if there is any user data for this user.
54
     */
54
     */
55
    public function test_get_contexts_for_userid() {
55
    public function test_get_contexts_for_userid(): void {
Línea 56... Línea 56...
56
        global $DB;
56
        global $DB;
57
 
57
 
Línea 78... Línea 78...
78
    }
78
    }
Línea 79... Línea 79...
79
 
79
 
80
    /**
80
    /**
81
     * Test that user data is exported correctly.
81
     * Test that user data is exported correctly.
82
     */
82
     */
83
    public function test_export_user_data() {
83
    public function test_export_user_data(): void {
Línea 84... Línea 84...
84
        global $DB;
84
        global $DB;
Línea 85... Línea 85...
85
 
85
 
Línea 119... Línea 119...
119
    }
119
    }
Línea 120... Línea 120...
120
 
120
 
121
    /**
121
    /**
122
     * Test deleting all user data for a specific context.
122
     * Test deleting all user data for a specific context.
123
     */
123
     */
124
    public function test_delete_data_for_all_users_in_context() {
124
    public function test_delete_data_for_all_users_in_context(): void {
Línea 125... Línea 125...
125
        global $DB;
125
        global $DB;
Línea 126... Línea 126...
126
 
126
 
Línea 167... Línea 167...
167
    }
167
    }
Línea 168... Línea 168...
168
 
168
 
169
    /**
169
    /**
170
     * This should work identical to the above test.
170
     * This should work identical to the above test.
171
     */
171
     */
172
    public function test_delete_data_for_user() {
172
    public function test_delete_data_for_user(): void {
Línea 173... Línea 173...
173
        global $DB;
173
        global $DB;
Línea 174... Línea 174...
174
 
174
 
Línea 216... Línea 216...
216
    }
216
    }
Línea 217... Línea 217...
217
 
217
 
218
    /**
218
    /**
219
     * Test that only users with a user context are fetched.
219
     * Test that only users with a user context are fetched.
220
     */
220
     */
221
    public function test_get_users_in_context() {
221
    public function test_get_users_in_context(): void {
Línea 222... Línea 222...
222
        global $DB;
222
        global $DB;
Línea 223... Línea 223...
223
 
223
 
Línea 256... Línea 256...
256
    }
256
    }
Línea 257... Línea 257...
257
 
257
 
258
    /**
258
    /**
259
     * Test that data for users in approved userlist is deleted.
259
     * Test that data for users in approved userlist is deleted.
260
     */
260
     */
261
    public function test_delete_data_for_users() {
261
    public function test_delete_data_for_users(): void {
Línea 262... Línea 262...
262
        global $DB;
262
        global $DB;
Línea 263... Línea 263...
263
 
263