Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 39... Línea 39...
39
 */
39
 */
40
class provider_test extends \core_privacy\tests\provider_testcase {
40
class provider_test extends \core_privacy\tests\provider_testcase {
41
    /**
41
    /**
42
     * One test to check fetch and export of all drafts.
42
     * One test to check fetch and export of all drafts.
43
     */
43
     */
44
    public function test_fetch_and_exports_drafts() {
44
    public function test_fetch_and_exports_drafts(): void {
45
        global $USER;
45
        global $USER;
46
        $this->resetAfterTest();
46
        $this->resetAfterTest();
Línea 47... Línea 47...
47
 
47
 
48
        // Create editor drafts in:
48
        // Create editor drafts in:
Línea 142... Línea 142...
142
    }
142
    }
Línea 143... Línea 143...
143
 
143
 
144
    /**
144
    /**
145
     * Test delete_for_all_users_in_context.
145
     * Test delete_for_all_users_in_context.
146
     */
146
     */
147
    public function test_delete_for_all_users_in_context() {
147
    public function test_delete_for_all_users_in_context(): void {
148
        global $USER, $DB;
148
        global $USER, $DB;
Línea 149... Línea 149...
149
        $this->resetAfterTest();
149
        $this->resetAfterTest();
150
 
150
 
Línea 228... Línea 228...
228
    }
228
    }
Línea 229... Línea 229...
229
 
229
 
230
    /**
230
    /**
231
     * Test delete_for_all_users_in_context.
231
     * Test delete_for_all_users_in_context.
232
     */
232
     */
233
    public function test_delete_for_user_in_contexts() {
233
    public function test_delete_for_user_in_contexts(): void {
234
        global $USER, $DB;
234
        global $USER, $DB;
Línea 235... Línea 235...
235
        $this->resetAfterTest();
235
        $this->resetAfterTest();
236
 
236
 
Línea 330... Línea 330...
330
    }
330
    }
Línea 331... Línea 331...
331
 
331
 
332
    /**
332
    /**
333
     * Test that user data with different contexts is fetched.
333
     * Test that user data with different contexts is fetched.
334
     */
334
     */
335
    public function test_get_users_in_context() {
335
    public function test_get_users_in_context(): void {
Línea 336... Línea 336...
336
        $this->resetAfterTest();
336
        $this->resetAfterTest();
Línea 337... Línea 337...
337
 
337
 
Línea 391... Línea 391...
391
    }
391
    }
Línea 392... Línea 392...
392
 
392
 
393
    /**
393
    /**
394
     * Test that data for users in approved userlist is deleted.
394
     * Test that data for users in approved userlist is deleted.
395
     */
395
     */
396
    public function test_delete_data_for_users() {
396
    public function test_delete_data_for_users(): void {
Línea 397... Línea 397...
397
        $this->resetAfterTest();
397
        $this->resetAfterTest();
Línea 398... Línea 398...
398
 
398
 
Línea 511... Línea 511...
511
 
511
 
512
    /**
512
    /**
513
     * Test fetch and delete when another user has editted a draft in your
513
     * Test fetch and delete when another user has editted a draft in your
514
     * user context. Edge case.
514
     * user context. Edge case.
515
     */
515
     */
516
    public function test_another_user_edits_you() {
516
    public function test_another_user_edits_you(): void {
517
        global $USER, $DB;
517
        global $USER, $DB;
Línea 518... Línea 518...
518
        $this->resetAfterTest();
518
        $this->resetAfterTest();
519
 
519
 
Línea 564... Línea 564...
564
    }
564
    }
Línea 565... Línea 565...
565
 
565
 
566
    /**
566
    /**
567
     * Test fetch and delete when you have edited another user's context.
567
     * Test fetch and delete when you have edited another user's context.
568
     */
568
     */
569
    public function test_another_you_edit_different_user() {
569
    public function test_another_you_edit_different_user(): void {
570
        global $USER, $DB;
570
        global $USER, $DB;
Línea 571... Línea 571...
571
        $this->resetAfterTest();
571
        $this->resetAfterTest();
572
 
572