Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 59... Línea 59...
59
    }
59
    }
Línea 60... Línea 60...
60
 
60
 
61
    /**
61
    /**
62
     * Get all of the contexts related to a user and stat tables.
62
     * Get all of the contexts related to a user and stat tables.
63
     */
63
     */
64
    public function test_get_contexts_for_userid() {
64
    public function test_get_contexts_for_userid(): void {
65
        $this->resetAfterTest();
65
        $this->resetAfterTest();
66
        $user1 = $this->getDataGenerator()->create_user();
66
        $user1 = $this->getDataGenerator()->create_user();
67
        $user2 = $this->getDataGenerator()->create_user();
67
        $user2 = $this->getDataGenerator()->create_user();
Línea 91... Línea 91...
91
    }
91
    }
Línea 92... Línea 92...
92
 
92
 
93
    /**
93
    /**
94
     * Test that stat data is exported as required.
94
     * Test that stat data is exported as required.
95
     */
95
     */
96
    public function test_export_user_data() {
96
    public function test_export_user_data(): void {
97
        $this->resetAfterTest();
97
        $this->resetAfterTest();
98
        $user = $this->getDataGenerator()->create_user();
98
        $user = $this->getDataGenerator()->create_user();
99
        $course1 = $this->getDataGenerator()->create_course();
99
        $course1 = $this->getDataGenerator()->create_course();
100
        $course2 = $this->getDataGenerator()->create_course();
100
        $course2 = $this->getDataGenerator()->create_course();
Línea 128... Línea 128...
128
    }
128
    }
Línea 129... Línea 129...
129
 
129
 
130
    /**
130
    /**
131
     * Test that stat data is deleted for a whole context.
131
     * Test that stat data is deleted for a whole context.
132
     */
132
     */
133
    public function test_delete_data_for_all_users_in_context() {
133
    public function test_delete_data_for_all_users_in_context(): void {
Línea 134... Línea 134...
134
        global $DB;
134
        global $DB;
135
 
135
 
136
        $this->resetAfterTest();
136
        $this->resetAfterTest();
Línea 167... Línea 167...
167
    }
167
    }
Línea 168... Línea 168...
168
 
168
 
169
    /**
169
    /**
170
     * Test that stats are deleted for one user.
170
     * Test that stats are deleted for one user.
171
     */
171
     */
172
    public function test_delete_data_for_user() {
172
    public function test_delete_data_for_user(): void {
Línea 173... Línea 173...
173
        global $DB;
173
        global $DB;
174
 
174
 
175
        $this->resetAfterTest();
175
        $this->resetAfterTest();
Línea 207... Línea 207...
207
    }
207
    }
Línea 208... Línea 208...
208
 
208
 
209
    /**
209
    /**
210
     * Test that only users within a course context are fetched.
210
     * Test that only users within a course context are fetched.
211
     */
211
     */
212
    public function test_get_users_in_context() {
212
    public function test_get_users_in_context(): void {
Línea 213... Línea 213...
213
        $this->resetAfterTest();
213
        $this->resetAfterTest();
Línea 214... Línea 214...
214
 
214
 
Línea 255... Línea 255...
255
    }
255
    }
Línea 256... Línea 256...
256
 
256
 
257
    /**
257
    /**
258
     * Test that data for users in approved userlist is deleted.
258
     * Test that data for users in approved userlist is deleted.
259
     */
259
     */
260
    public function test_delete_data_for_users() {
260
    public function test_delete_data_for_users(): void {
Línea 261... Línea 261...
261
        $this->resetAfterTest();
261
        $this->resetAfterTest();
Línea 262... Línea 262...
262
 
262