Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 37... Línea 37...
37
class provider_test extends \core_privacy\tests\provider_testcase {
37
class provider_test extends \core_privacy\tests\provider_testcase {
Línea 38... Línea 38...
38
 
38
 
39
    /**
39
    /**
40
     * Test getting the context for the user ID related to this plugin.
40
     * Test getting the context for the user ID related to this plugin.
41
     */
41
     */
42
    public function test_get_contexts_for_userid() {
42
    public function test_get_contexts_for_userid(): void {
Línea 43... Línea 43...
43
        global $DB;
43
        global $DB;
Línea 44... Línea 44...
44
 
44
 
Línea 75... Línea 75...
75
    }
75
    }
Línea 76... Línea 76...
76
 
76
 
77
    /**
77
    /**
78
     * Test for provider::export_user_data().
78
     * Test for provider::export_user_data().
79
     */
79
     */
80
    public function test_export_for_context() {
80
    public function test_export_for_context(): void {
Línea 81... Línea 81...
81
        global $DB;
81
        global $DB;
Línea 82... Línea 82...
82
 
82
 
Línea 165... Línea 165...
165
    }
165
    }
Línea 166... Línea 166...
166
 
166
 
167
    /**
167
    /**
168
     * Test for provider::delete_data_for_all_users_in_context().
168
     * Test for provider::delete_data_for_all_users_in_context().
169
     */
169
     */
170
    public function test_delete_data_for_all_users_in_context() {
170
    public function test_delete_data_for_all_users_in_context(): void {
Línea 171... Línea 171...
171
        global $DB;
171
        global $DB;
Línea 172... Línea 172...
172
 
172
 
Línea 230... Línea 230...
230
    }
230
    }
Línea 231... Línea 231...
231
 
231
 
232
    /**
232
    /**
233
     * Test for provider::delete_data_for_user().
233
     * Test for provider::delete_data_for_user().
234
     */
234
     */
235
    public function test_delete_data_for_user() {
235
    public function test_delete_data_for_user(): void {
Línea 236... Línea 236...
236
        global $DB;
236
        global $DB;
Línea 237... Línea 237...
237
 
237
 
Línea 302... Línea 302...
302
    }
302
    }
Línea 303... Línea 303...
303
 
303
 
304
    /**
304
    /**
305
     * Test that only users with a course and module context are fetched.
305
     * Test that only users with a course and module context are fetched.
306
     */
306
     */
307
    public function test_get_users_in_context() {
307
    public function test_get_users_in_context(): void {
Línea 308... Línea 308...
308
        global $DB;
308
        global $DB;
Línea 309... Línea 309...
309
 
309
 
Línea 392... Línea 392...
392
    }
392
    }
Línea 393... Línea 393...
393
 
393
 
394
    /**
394
    /**
395
     * Test that data for users in approved userlist is deleted.
395
     * Test that data for users in approved userlist is deleted.
396
     */
396
     */
397
    public function test_delete_data_for_users() {
397
    public function test_delete_data_for_users(): void {
Línea 398... Línea 398...
398
        global $DB;
398
        global $DB;
Línea 399... Línea 399...
399
 
399