Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 47... Línea 47...
47
    }
47
    }
Línea 48... Línea 48...
48
 
48
 
49
    /**
49
    /**
50
     * Test for provider::get_contexts_for_userid().
50
     * Test for provider::get_contexts_for_userid().
51
     */
51
     */
52
    public function test_get_contexts_for_userid() {
52
    public function test_get_contexts_for_userid(): void {
53
        // Test setup.
53
        // Test setup.
54
        $user = $this->getDataGenerator()->create_user();
54
        $user = $this->getDataGenerator()->create_user();
Línea 55... Línea 55...
55
        $this->setUser($user);
55
        $this->setUser($user);
Línea 74... Línea 74...
74
    }
74
    }
Línea 75... Línea 75...
75
 
75
 
76
    /**
76
    /**
77
     * Test for provider::export_user_data().
77
     * Test for provider::export_user_data().
78
     */
78
     */
79
    public function test_export_user_data() {
79
    public function test_export_user_data(): void {
80
        // Test setup.
80
        // Test setup.
81
        $user = $this->getDataGenerator()->create_user();
81
        $user = $this->getDataGenerator()->create_user();
Línea 82... Línea 82...
82
        $this->setUser($user);
82
        $this->setUser($user);
Línea 106... Línea 106...
106
    }
106
    }
Línea 107... Línea 107...
107
 
107
 
108
    /**
108
    /**
109
     * Test for provider::delete_data_for_all_users_in_context().
109
     * Test for provider::delete_data_for_all_users_in_context().
110
     */
110
     */
111
    public function test_delete_data_for_all_users_in_context() {
111
    public function test_delete_data_for_all_users_in_context(): void {
Línea 112... Línea 112...
112
        global $DB;
112
        global $DB;
113
 
113
 
114
        // Test setup.
114
        // Test setup.
Línea 136... Línea 136...
136
    }
136
    }
Línea 137... Línea 137...
137
 
137
 
138
    /**
138
    /**
139
     * Test for provider::delete_data_for_user().
139
     * Test for provider::delete_data_for_user().
140
     */
140
     */
141
    public function test_delete_data_for_user() {
141
    public function test_delete_data_for_user(): void {
Línea 142... Línea 142...
142
        global $DB;
142
        global $DB;
143
 
143
 
144
        // Test setup.
144
        // Test setup.
Línea 167... Línea 167...
167
    }
167
    }
Línea 168... Línea 168...
168
 
168
 
169
    /**
169
    /**
170
     * Test that only users with a user context are fetched.
170
     * Test that only users with a user context are fetched.
171
     */
171
     */
172
    public function test_get_users_in_context() {
172
    public function test_get_users_in_context(): void {
Línea 173... Línea 173...
173
        $this->resetAfterTest();
173
        $this->resetAfterTest();
174
 
174
 
175
        $component = 'core_repository';
175
        $component = 'core_repository';
Línea 199... Línea 199...
199
    }
199
    }
Línea 200... Línea 200...
200
 
200
 
201
    /**
201
    /**
202
     * Test that data for users in approved userlist is deleted.
202
     * Test that data for users in approved userlist is deleted.
203
     */
203
     */
204
    public function test_delete_data_for_users() {
204
    public function test_delete_data_for_users(): void {
Línea 205... Línea 205...
205
        $this->resetAfterTest();
205
        $this->resetAfterTest();
206
 
206
 
207
        $component = 'core_repository';
207
        $component = 'core_repository';