Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 38... Línea 38...
38
 */
38
 */
39
class provider_test extends provider_testcase {
39
class provider_test extends provider_testcase {
40
    /**
40
    /**
41
     * Export for a user with no keys in the specified instance will not have any data exported.
41
     * Export for a user with no keys in the specified instance will not have any data exported.
42
     */
42
     */
43
    public function test_export_userkeys_no_keys() {
43
    public function test_export_userkeys_no_keys(): void {
44
        $this->resetAfterTest();
44
        $this->resetAfterTest();
Línea 45... Línea 45...
45
 
45
 
46
        $user = $this->getDataGenerator()->create_user();
46
        $user = $this->getDataGenerator()->create_user();
Línea 54... Línea 54...
54
    }
54
    }
Línea 55... Línea 55...
55
 
55
 
56
    /**
56
    /**
57
     * Export for a user with a key against a script where no instance is specified.
57
     * Export for a user with a key against a script where no instance is specified.
58
     */
58
     */
59
    public function test_export_userkeys_basic_key() {
59
    public function test_export_userkeys_basic_key(): void {
60
        global $DB;
60
        global $DB;
Línea 61... Línea 61...
61
        $this->resetAfterTest();
61
        $this->resetAfterTest();
62
 
62
 
Línea 91... Línea 91...
91
    }
91
    }
Línea 92... Línea 92...
92
 
92
 
93
    /**
93
    /**
94
     * Export for a user with a key against a script where additional data is specified.
94
     * Export for a user with a key against a script where additional data is specified.
95
     */
95
     */
96
    public function test_export_userkeys_complex_key() {
96
    public function test_export_userkeys_complex_key(): void {
97
        global $DB;
97
        global $DB;
Línea 98... Línea 98...
98
        $this->resetAfterTest();
98
        $this->resetAfterTest();
99
 
99
 
Línea 129... Línea 129...
129
    }
129
    }
Línea 130... Línea 130...
130
 
130
 
131
    /**
131
    /**
132
     * Export for a user with a key against a script where no instance is specified.
132
     * Export for a user with a key against a script where no instance is specified.
133
     */
133
     */
134
    public function test_export_userkeys_basic_key_without_filter() {
134
    public function test_export_userkeys_basic_key_without_filter(): void {
135
        global $DB;
135
        global $DB;
Línea 136... Línea 136...
136
        $this->resetAfterTest();
136
        $this->resetAfterTest();
137
 
137
 
Línea 166... Línea 166...
166
    }
166
    }
Línea 167... Línea 167...
167
 
167
 
168
    /**
168
    /**
169
     * Export for a user with a key against a script where additional data is specified.
169
     * Export for a user with a key against a script where additional data is specified.
170
     */
170
     */
171
    public function test_export_userkeys_complex_key_with_filter() {
171
    public function test_export_userkeys_complex_key_with_filter(): void {
172
        global $DB;
172
        global $DB;
Línea 173... Línea 173...
173
        $this->resetAfterTest();
173
        $this->resetAfterTest();
174
 
174
 
Línea 212... Línea 212...
212
    }
212
    }
Línea 213... Línea 213...
213
 
213
 
214
    /**
214
    /**
215
     * Export for a user with keys against multiple scripts where additional data is specified.
215
     * Export for a user with keys against multiple scripts where additional data is specified.
216
     */
216
     */
217
    public function test_export_userkeys_multiple_complex_key_with_filter() {
217
    public function test_export_userkeys_multiple_complex_key_with_filter(): void {
218
        global $DB;
218
        global $DB;
Línea 219... Línea 219...
219
        $this->resetAfterTest();
219
        $this->resetAfterTest();
220
 
220
 
Línea 267... Línea 267...
267
    }
267
    }
Línea 268... Línea 268...
268
 
268
 
269
    /**
269
    /**
270
     * Export for keys against multiple users.
270
     * Export for keys against multiple users.
271
     */
271
     */
272
    public function test_export_userkeys_multiple_users() {
272
    public function test_export_userkeys_multiple_users(): void {
273
        global $DB;
273
        global $DB;
Línea 274... Línea 274...
274
        $this->resetAfterTest();
274
        $this->resetAfterTest();
275
 
275
 
Línea 319... Línea 319...
319
    }
319
    }
Línea 320... Línea 320...
320
 
320
 
321
    /**
321
    /**
322
     * Delete for all users in a script.
322
     * Delete for all users in a script.
323
     */
323
     */
324
    public function test_delete_all_userkeys_in_script() {
324
    public function test_delete_all_userkeys_in_script(): void {
325
        global $DB;
325
        global $DB;
Línea 326... Línea 326...
326
        $this->resetAfterTest();
326
        $this->resetAfterTest();
327
 
327