Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 44... Línea 44...
44
class provider_test extends \core_privacy\tests\provider_testcase {
44
class provider_test extends \core_privacy\tests\provider_testcase {
Línea 45... Línea 45...
45
 
45
 
46
    /**
46
    /**
47
     * Test for provider::get_metadata().
47
     * Test for provider::get_metadata().
48
     */
48
     */
49
    public function test_get_metadata() {
49
    public function test_get_metadata(): void {
50
        $collection = new collection('mod_lti');
50
        $collection = new collection('mod_lti');
51
        $newcollection = provider::get_metadata($collection);
51
        $newcollection = provider::get_metadata($collection);
52
        $itemcollection = $newcollection->get_collection();
52
        $itemcollection = $newcollection->get_collection();
Línea 88... Línea 88...
88
    }
88
    }
Línea 89... Línea 89...
89
 
89
 
90
    /**
90
    /**
91
     * Test for provider::get_contexts_for_userid().
91
     * Test for provider::get_contexts_for_userid().
92
     */
92
     */
93
    public function test_get_contexts_for_userid() {
93
    public function test_get_contexts_for_userid(): void {
Línea 94... Línea 94...
94
        $this->resetAfterTest();
94
        $this->resetAfterTest();
Línea 95... Línea 95...
95
 
95
 
Línea 120... Línea 120...
120
    }
120
    }
Línea 121... Línea 121...
121
 
121
 
122
    /**
122
    /**
123
     * Test for provider::test_get_users_in_context()
123
     * Test for provider::test_get_users_in_context()
124
     */
124
     */
125
    public function test_get_users_in_context() {
125
    public function test_get_users_in_context(): void {
Línea 126... Línea 126...
126
        $this->resetAfterTest();
126
        $this->resetAfterTest();
127
 
127
 
Línea 161... Línea 161...
161
    }
161
    }
Línea 162... Línea 162...
162
 
162
 
163
    /**
163
    /**
164
     * Test for provider::export_user_data().
164
     * Test for provider::export_user_data().
165
     */
165
     */
166
    public function test_export_for_context_submissions() {
166
    public function test_export_for_context_submissions(): void {
Línea 167... Línea 167...
167
        $this->resetAfterTest();
167
        $this->resetAfterTest();
Línea 168... Línea 168...
168
 
168
 
Línea 190... Línea 190...
190
    }
190
    }
Línea 191... Línea 191...
191
 
191
 
192
    /**
192
    /**
193
     * Test for provider::export_user_data().
193
     * Test for provider::export_user_data().
194
     */
194
     */
195
    public function test_export_for_context_tool_types() {
195
    public function test_export_for_context_tool_types(): void {
Línea 196... Línea 196...
196
        $this->resetAfterTest();
196
        $this->resetAfterTest();
197
 
197
 
Línea 241... Línea 241...
241
    }
241
    }
Línea 242... Línea 242...
242
 
242
 
243
    /**
243
    /**
244
     * Test for provider::export_user_data().
244
     * Test for provider::export_user_data().
245
     */
245
     */
246
    public function test_export_for_context_tool_proxies() {
246
    public function test_export_for_context_tool_proxies(): void {
Línea 247... Línea 247...
247
        $this->resetAfterTest();
247
        $this->resetAfterTest();
248
 
248
 
249
        // Create a user that will not make a tool proxy.
249
        // Create a user that will not make a tool proxy.
Línea 266... Línea 266...
266
    }
266
    }
Línea 267... Línea 267...
267
 
267
 
268
    /**
268
    /**
269
     * Test for provider::delete_data_for_all_users_in_context().
269
     * Test for provider::delete_data_for_all_users_in_context().
270
     */
270
     */
271
    public function test_delete_data_for_all_users_in_context() {
271
    public function test_delete_data_for_all_users_in_context(): void {
Línea 272... Línea 272...
272
        global $DB;
272
        global $DB;
Línea 273... Línea 273...
273
 
273
 
Línea 298... Línea 298...
298
    }
298
    }
Línea 299... Línea 299...
299
 
299
 
300
    /**
300
    /**
301
     * Test for provider::delete_data_for_user().
301
     * Test for provider::delete_data_for_user().
302
     */
302
     */
303
    public function test_delete_data_for_user() {
303
    public function test_delete_data_for_user(): void {
Línea 304... Línea 304...
304
        global $DB;
304
        global $DB;
Línea 305... Línea 305...
305
 
305
 
Línea 337... Línea 337...
337
    }
337
    }
Línea 338... Línea 338...
338
 
338
 
339
    /**
339
    /**
340
     * Test for provider::delete_data_for_users().
340
     * Test for provider::delete_data_for_users().
341
     */
341
     */
342
    public function test_delete_data_for_users() {
342
    public function test_delete_data_for_users(): void {
343
        global $DB;
343
        global $DB;
Línea 344... Línea 344...
344
        $component = 'mod_lti';
344
        $component = 'mod_lti';