Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 70... Línea 70...
70
 
70
 
71
    /**
71
    /**
72
     * Test that calling export_question_usage on a usage belonging to a
72
     * Test that calling export_question_usage on a usage belonging to a
73
     * different user does not export any data.
73
     * different user does not export any data.
74
     */
74
     */
75
    public function test_export_question_usage_no_usage() {
75
    public function test_export_question_usage_no_usage(): void {
Línea 76... Línea 76...
76
        $this->resetAfterTest();
76
        $this->resetAfterTest();
Línea 77... Línea 77...
77
 
77
 
Línea 104... Línea 104...
104
 
104
 
105
    /**
105
    /**
106
     * Test that calling export_question_usage on a usage belonging to a
106
     * Test that calling export_question_usage on a usage belonging to a
107
     * different user but ignoring the user match
107
     * different user but ignoring the user match
108
     */
108
     */
109
    public function test_export_question_usage_with_usage() {
109
    public function test_export_question_usage_with_usage(): void {
Línea 110... Línea 110...
110
        $this->resetAfterTest();
110
        $this->resetAfterTest();
Línea 111... Línea 111...
111
 
111
 
Línea 182... Línea 182...
182
    }
182
    }
Línea 183... Línea 183...
183
 
183
 
184
    /**
184
    /**
185
     * Test that questions owned by a user are exported and never deleted.
185
     * Test that questions owned by a user are exported and never deleted.
186
     */
186
     */
187
    public function test_question_owned_is_handled() {
187
    public function test_question_owned_is_handled(): void {
188
        global $DB;
188
        global $DB;
Línea 189... Línea 189...
189
        $this->resetAfterTest();
189
        $this->resetAfterTest();
Línea 279... Línea 279...
279
    }
279
    }
Línea 280... Línea 280...
280
 
280
 
281
    /**
281
    /**
282
     * Deleting questions should only unset their created and modified user.
282
     * Deleting questions should only unset their created and modified user.
283
     */
283
     */
284
    public function test_question_delete_data_for_user_anonymised() {
284
    public function test_question_delete_data_for_user_anonymised(): void {
285
        global $DB;
285
        global $DB;
Línea 286... Línea 286...
286
        $this->resetAfterTest(true);
286
        $this->resetAfterTest(true);
287
 
287
 
Línea 360... Línea 360...
360
    }
360
    }
Línea 361... Línea 361...
361
 
361
 
362
    /**
362
    /**
363
     * Deleting questions should only unset their created and modified user for all questions in a context.
363
     * Deleting questions should only unset their created and modified user for all questions in a context.
364
     */
364
     */
365
    public function test_question_delete_data_for_all_users_in_context_anonymised() {
365
    public function test_question_delete_data_for_all_users_in_context_anonymised(): void {
366
        global $DB;
366
        global $DB;
Línea 367... Línea 367...
367
        $this->resetAfterTest(true);
367
        $this->resetAfterTest(true);
368
 
368
 
Línea 433... Línea 433...
433
    }
433
    }
Línea 434... Línea 434...
434
 
434
 
435
    /**
435
    /**
436
     * Test for provider::get_users_in_context().
436
     * Test for provider::get_users_in_context().
437
     */
437
     */
438
    public function test_get_users_in_context() {
438
    public function test_get_users_in_context(): void {
Línea 439... Línea 439...
439
        $this->resetAfterTest();
439
        $this->resetAfterTest();
Línea 440... Línea 440...
440
 
440
 
Línea 470... Línea 470...
470
    }
470
    }
Línea 471... Línea 471...
471
 
471
 
472
    /**
472
    /**
473
     * Test for provider::delete_data_for_users().
473
     * Test for provider::delete_data_for_users().
474
     */
474
     */
475
    public function test_delete_data_for_users() {
475
    public function test_delete_data_for_users(): void {
Línea 476... Línea 476...
476
        global $DB;
476
        global $DB;
Línea 477... Línea 477...
477
 
477