Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 176... Línea 176...
176
    }
176
    }
Línea 177... Línea 177...
177
 
177
 
178
    /**
178
    /**
179
     * Test {@link \mod_workshop\privacy\provider::get_contexts_for_userid()} implementation.
179
     * Test {@link \mod_workshop\privacy\provider::get_contexts_for_userid()} implementation.
180
     */
180
     */
Línea 181... Línea 181...
181
    public function test_get_contexts_for_userid() {
181
    public function test_get_contexts_for_userid(): void {
182
 
182
 
183
        $cm11 = get_coursemodule_from_instance('workshop', $this->workshop11->id);
183
        $cm11 = get_coursemodule_from_instance('workshop', $this->workshop11->id);
Línea 207... Línea 207...
207
    }
207
    }
Línea 208... Línea 208...
208
 
208
 
209
    /**
209
    /**
210
     * Test {@link \mod_workshop\privacy\provider::get_users_in_context()} implementation.
210
     * Test {@link \mod_workshop\privacy\provider::get_users_in_context()} implementation.
211
     */
211
     */
Línea 212... Línea 212...
212
    public function test_get_users_in_context() {
212
    public function test_get_users_in_context(): void {
213
 
213
 
214
        $cm11 = get_coursemodule_from_instance('workshop', $this->workshop11->id);
214
        $cm11 = get_coursemodule_from_instance('workshop', $this->workshop11->id);
Línea 254... Línea 254...
254
    }
254
    }
Línea 255... Línea 255...
255
 
255
 
256
    /**
256
    /**
257
     * Test {@link \mod_workshop\privacy\provider::export_user_data()} implementation.
257
     * Test {@link \mod_workshop\privacy\provider::export_user_data()} implementation.
258
     */
258
     */
Línea 259... Línea 259...
259
    public function test_export_user_data_1() {
259
    public function test_export_user_data_1(): void {
260
 
260
 
261
        $contextlist = new \core_privacy\local\request\approved_contextlist($this->student1, 'mod_workshop', [
261
        $contextlist = new \core_privacy\local\request\approved_contextlist($this->student1, 'mod_workshop', [
262
            \context_module::instance($this->workshop11->cmid)->id,
262
            \context_module::instance($this->workshop11->cmid)->id,
Línea 306... Línea 306...
306
    }
306
    }
Línea 307... Línea 307...
307
 
307
 
308
    /**
308
    /**
309
     * Test {@link \mod_workshop\privacy\provider::export_user_data()} implementation.
309
     * Test {@link \mod_workshop\privacy\provider::export_user_data()} implementation.
310
     */
310
     */
Línea 311... Línea 311...
311
    public function test_export_user_data_2() {
311
    public function test_export_user_data_2(): void {
312
 
312
 
313
        $contextlist = new \core_privacy\local\request\approved_contextlist($this->student2, 'mod_workshop', [
313
        $contextlist = new \core_privacy\local\request\approved_contextlist($this->student2, 'mod_workshop', [
Línea 326... Línea 326...
326
    }
326
    }
Línea 327... Línea 327...
327
 
327
 
328
    /**
328
    /**
329
     * Test {@link \mod_workshop\privacy\provider::delete_data_for_all_users_in_context()} implementation.
329
     * Test {@link \mod_workshop\privacy\provider::delete_data_for_all_users_in_context()} implementation.
330
     */
330
     */
331
    public function test_delete_data_for_all_users_in_context() {
331
    public function test_delete_data_for_all_users_in_context(): void {
Línea 332... Línea 332...
332
        global $DB;
332
        global $DB;
Línea 333... Línea 333...
333
 
333
 
Línea 343... Línea 343...
343
    }
343
    }
Línea 344... Línea 344...
344
 
344
 
345
    /**
345
    /**
346
     * Test {@link \mod_workshop\privacy\provider::delete_data_for_user()} implementation.
346
     * Test {@link \mod_workshop\privacy\provider::delete_data_for_user()} implementation.
347
     */
347
     */
348
    public function test_delete_data_for_user() {
348
    public function test_delete_data_for_user(): void {
Línea 349... Línea 349...
349
        global $DB;
349
        global $DB;
350
 
350
 
351
        $student1submissions = $DB->get_records('workshop_submissions', [
351
        $student1submissions = $DB->get_records('workshop_submissions', [
Línea 427... Línea 427...
427
    }
427
    }
Línea 428... Línea 428...
428
 
428
 
429
    /**
429
    /**
430
     * Test {@link \mod_workshop\privacy\provider::delete_data_for_users()} implementation.
430
     * Test {@link \mod_workshop\privacy\provider::delete_data_for_users()} implementation.
431
     */
431
     */
432
    public function test_delete_data_for_users() {
432
    public function test_delete_data_for_users(): void {
Línea 433... Línea 433...
433
        global $DB;
433
        global $DB;
434
 
434
 
435
        // Student1 has submissions in two workshops.
435
        // Student1 has submissions in two workshops.