Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 63... Línea 63...
63
    }
63
    }
Línea 64... Línea 64...
64
 
64
 
65
    /**
65
    /**
66
     * Check that a user context is returned if there is any user data for this user.
66
     * Check that a user context is returned if there is any user data for this user.
67
     */
67
     */
68
    public function test_get_contexts_for_userid() {
68
    public function test_get_contexts_for_userid(): void {
69
        $this->resetAfterTest();
69
        $this->resetAfterTest();
70
        $user = $this->getDataGenerator()->create_user();
70
        $user = $this->getDataGenerator()->create_user();
Línea 71... Línea 71...
71
        $this->assertEmpty(provider::get_contexts_for_userid($user->id));
71
        $this->assertEmpty(provider::get_contexts_for_userid($user->id));
Línea 84... Línea 84...
84
    }
84
    }
Línea 85... Línea 85...
85
 
85
 
86
    /**
86
    /**
87
     * Test that user data is exported correctly.
87
     * Test that user data is exported correctly.
88
     */
88
     */
89
    public function test_export_user_data() {
89
    public function test_export_user_data(): void {
Línea 90... Línea 90...
90
        global $DB;
90
        global $DB;
91
 
91
 
92
        $this->resetAfterTest();
92
        $this->resetAfterTest();
Línea 118... Línea 118...
118
    }
118
    }
Línea 119... Línea 119...
119
 
119
 
120
    /**
120
    /**
121
     * Test deleting all user data for a specific context.
121
     * Test deleting all user data for a specific context.
122
     */
122
     */
123
    public function test_delete_data_for_all_users_in_context() {
123
    public function test_delete_data_for_all_users_in_context(): void {
Línea 124... Línea 124...
124
        global $DB;
124
        global $DB;
125
 
125
 
126
        $this->resetAfterTest();
126
        $this->resetAfterTest();
Línea 153... Línea 153...
153
    }
153
    }
Línea 154... Línea 154...
154
 
154
 
155
    /**
155
    /**
156
     * This should work identical to the above test.
156
     * This should work identical to the above test.
157
     */
157
     */
158
    public function test_delete_data_for_user() {
158
    public function test_delete_data_for_user(): void {
Línea 159... Línea 159...
159
        global $DB;
159
        global $DB;
160
 
160
 
161
        $this->resetAfterTest();
161
        $this->resetAfterTest();
Línea 192... Línea 192...
192
    }
192
    }
Línea 193... Línea 193...
193
 
193
 
194
    /**
194
    /**
195
     * Test that only users within a course context are fetched.
195
     * Test that only users within a course context are fetched.
196
     */
196
     */
197
    public function test_get_users_in_context() {
197
    public function test_get_users_in_context(): void {
Línea 198... Línea 198...
198
        $this->resetAfterTest();
198
        $this->resetAfterTest();
Línea 199... Línea 199...
199
 
199
 
Línea 230... Línea 230...
230
    }
230
    }
Línea 231... Línea 231...
231
 
231
 
232
    /**
232
    /**
233
     * Test that data for users in approved userlist is deleted.
233
     * Test that data for users in approved userlist is deleted.
234
     */
234
     */
235
    public function test_delete_data_for_users() {
235
    public function test_delete_data_for_users(): void {
Línea 236... Línea 236...
236
        $this->resetAfterTest();
236
        $this->resetAfterTest();
Línea 237... Línea 237...
237
 
237