Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 42... Línea 42...
42
class provider_test extends \core_privacy\tests\provider_testcase {
42
class provider_test extends \core_privacy\tests\provider_testcase {
Línea 43... Línea 43...
43
 
43
 
44
    /**
44
    /**
45
     * Test for provider::get_metadata().
45
     * Test for provider::get_metadata().
46
     */
46
     */
47
    public function test_get_metadata() {
47
    public function test_get_metadata(): void {
Línea 48... Línea 48...
48
        $this->resetAfterTest(true);
48
        $this->resetAfterTest(true);
49
 
49
 
50
        $collection = new collection('mod_bigbluebuttonbn');
50
        $collection = new collection('mod_bigbluebuttonbn');
Línea 83... Línea 83...
83
    }
83
    }
Línea 84... Línea 84...
84
 
84
 
85
    /**
85
    /**
86
     * Test for provider::get_contexts_for_userid().
86
     * Test for provider::get_contexts_for_userid().
87
     */
87
     */
88
    public function test_get_contexts_for_userid() {
88
    public function test_get_contexts_for_userid(): void {
Línea 89... Línea 89...
89
        $this->resetAfterTest();
89
        $this->resetAfterTest();
90
 
90
 
91
        $e = $this->get_bigbluebuttonbn_environemnt();
91
        $e = $this->get_bigbluebuttonbn_environemnt();
Línea 111... Línea 111...
111
    }
111
    }
Línea 112... Línea 112...
112
 
112
 
113
    /**
113
    /**
114
     * Test for provider::export_user_data().
114
     * Test for provider::export_user_data().
115
     */
115
     */
116
    public function test_export_for_context_logs() {
116
    public function test_export_for_context_logs(): void {
Línea 117... Línea 117...
117
        $this->resetAfterTest();
117
        $this->resetAfterTest();
118
 
118
 
Línea 142... Línea 142...
142
    }
142
    }
Línea 143... Línea 143...
143
 
143
 
144
    /**
144
    /**
145
     * Test that only users with relevant contexts are fetched.
145
     * Test that only users with relevant contexts are fetched.
146
     */
146
     */
147
    public function test_get_users_in_context() {
147
    public function test_get_users_in_context(): void {
148
        // For backward compatibility with old versions of Moodle.
148
        // For backward compatibility with old versions of Moodle.
149
        if (!class_exists('\core_privacy\local\request\userlist')) {
149
        if (!class_exists('\core_privacy\local\request\userlist')) {
150
            return;
150
            return;
Línea 180... Línea 180...
180
    }
180
    }
Línea 181... Línea 181...
181
 
181
 
182
    /**
182
    /**
183
     * Test for provider::delete_data_for_all_users_in_context().
183
     * Test for provider::delete_data_for_all_users_in_context().
184
     */
184
     */
185
    public function test_delete_data_for_all_users_in_context() {
185
    public function test_delete_data_for_all_users_in_context(): void {
Línea 186... Línea 186...
186
        global $DB;
186
        global $DB;
Línea 187... Línea 187...
187
 
187
 
Línea 203... Línea 203...
203
    }
203
    }
Línea 204... Línea 204...
204
 
204
 
205
    /**
205
    /**
206
     * Test for provider::delete_data_for_user().
206
     * Test for provider::delete_data_for_user().
207
     */
207
     */
208
    public function test_delete_data_for_user() {
208
    public function test_delete_data_for_user(): void {
Línea 209... Línea 209...
209
        global $DB;
209
        global $DB;
Línea 210... Línea 210...
210
 
210
 
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
        global $DB;
236
        global $DB;
237
 
237
 
238
        // For backward compatibility with old versions of Moodle.
238
        // For backward compatibility with old versions of Moodle.