Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 133... Línea 133...
133
    /**
133
    /**
134
     * Test delete_data_for_all_users_in_context
134
     * Test delete_data_for_all_users_in_context
135
     *
135
     *
136
     * @covers \core_external\privacy\provider::delete_data_for_all_users_in_context
136
     * @covers \core_external\privacy\provider::delete_data_for_all_users_in_context
137
     */
137
     */
138
    public function test_delete_data_for_all_users_in_context() {
138
    public function test_delete_data_for_all_users_in_context(): void {
139
        global $DB;
139
        global $DB;
Línea 140... Línea 140...
140
 
140
 
141
        $dg = $this->getDataGenerator();
141
        $dg = $this->getDataGenerator();
142
        $u1 = $dg->create_user();
142
        $u1 = $dg->create_user();
Línea 172... Línea 172...
172
 
172
 
173
    /**
173
    /**
174
     * Test the export_user_data function.
174
     * Test the export_user_data function.
175
     * @covers \core_external\privacy\provider::export_user_data
175
     * @covers \core_external\privacy\provider::export_user_data
176
     */
176
     */
177
    public function test_export_data_for_user() {
177
    public function test_export_data_for_user(): void {
Línea 178... Línea 178...
178
        global $DB;
178
        global $DB;
179
 
179
 
180
        $dg = $this->getDataGenerator();
180
        $dg = $this->getDataGenerator();
Línea 255... Línea 255...
255
    /**
255
    /**
256
     * Test that only users with a user context are fetched.
256
     * Test that only users with a user context are fetched.
257
     *
257
     *
258
     * @covers \core_external\privacy\provider::get_users_in_context
258
     * @covers \core_external\privacy\provider::get_users_in_context
259
     */
259
     */
260
    public function test_get_users_in_context() {
260
    public function test_get_users_in_context(): void {
Línea 261... Línea 261...
261
 
261
 
262
        $component = 'core_external';
262
        $component = 'core_external';
263
        // Create user u1.
263
        // Create user u1.
264
        $u1 = $this->getDataGenerator()->create_user();
264
        $u1 = $this->getDataGenerator()->create_user();
Línea 341... Línea 341...
341
    /**
341
    /**
342
     * Test that data for users in approved userlist is deleted.
342
     * Test that data for users in approved userlist is deleted.
343
     *
343
     *
344
     * @covers \core_external\privacy\provider::delete_data_for_users
344
     * @covers \core_external\privacy\provider::delete_data_for_users
345
     */
345
     */
346
    public function test_delete_data_for_users() {
346
    public function test_delete_data_for_users(): void {
Línea 347... Línea 347...
347
 
347
 
348
        $component = 'core_external';
348
        $component = 'core_external';
349
        // Create user u1.
349
        // Create user u1.
350
        $u1 = $this->getDataGenerator()->create_user();
350
        $u1 = $this->getDataGenerator()->create_user();