Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 49... Línea 49...
49
    }
49
    }
Línea 50... Línea 50...
50
 
50
 
51
    /**
51
    /**
52
     * Test for provider::get_contexts_for_userid().
52
     * Test for provider::get_contexts_for_userid().
53
     */
53
     */
54
    public function test_get_contexts_for_userid() {
54
    public function test_get_contexts_for_userid(): void {
Línea 55... Línea 55...
55
        global $DB;
55
        global $DB;
56
 
56
 
57
        // Test setup.
57
        // Test setup.
Línea 92... Línea 92...
92
    }
92
    }
Línea 93... Línea 93...
93
 
93
 
94
    /**
94
    /**
95
     * Test for provider::export_user_data().
95
     * Test for provider::export_user_data().
96
     */
96
     */
97
    public function test_export_user_data() {
97
    public function test_export_user_data(): void {
98
        // Test setup.
98
        // Test setup.
99
        $user = $this->getDataGenerator()->create_user();
99
        $user = $this->getDataGenerator()->create_user();
100
        $this->setUser($user);
100
        $this->setUser($user);
Línea 142... Línea 142...
142
    }
142
    }
Línea 143... Línea 143...
143
 
143
 
144
    /**
144
    /**
145
     * Test for provider::delete_data_for_all_users_in_context().
145
     * Test for provider::delete_data_for_all_users_in_context().
146
     */
146
     */
147
    public function test_delete_data_for_all_users_in_context() {
147
    public function test_delete_data_for_all_users_in_context(): void {
Línea 148... Línea 148...
148
        global $DB;
148
        global $DB;
149
 
149
 
150
        // Test setup.
150
        // Test setup.
Línea 201... Línea 201...
201
    }
201
    }
Línea 202... Línea 202...
202
 
202
 
203
    /**
203
    /**
204
     * Test for provider::delete_data_for_user().
204
     * Test for provider::delete_data_for_user().
205
     */
205
     */
206
    public function test_delete_data_for_user() {
206
    public function test_delete_data_for_user(): void {
Línea 207... Línea 207...
207
        global $DB;
207
        global $DB;
208
 
208
 
209
        // Test setup.
209
        // Test setup.
Línea 249... Línea 249...
249
    }
249
    }
Línea 250... Línea 250...
250
 
250
 
251
    /**
251
    /**
252
     * Test that only users within a course context are fetched.
252
     * Test that only users within a course context are fetched.
253
     */
253
     */
254
    public function test_get_users_in_context() {
254
    public function test_get_users_in_context(): void {
Línea 255... Línea 255...
255
        $component = 'tool_cohortroles';
255
        $component = 'tool_cohortroles';
256
 
256
 
257
        // Create a user.
257
        // Create a user.
Línea 291... Línea 291...
291
    }
291
    }
Línea 292... Línea 292...
292
 
292
 
293
    /**
293
    /**
294
     * Test that data for users in approved userlist is deleted.
294
     * Test that data for users in approved userlist is deleted.
295
     */
295
     */
296
    public function test_delete_data_for_users() {
296
    public function test_delete_data_for_users(): void {
Línea 297... Línea 297...
297
        $component = 'tool_cohortroles';
297
        $component = 'tool_cohortroles';
298
 
298
 
299
        // Create user1.
299
        // Create user1.