Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 41... Línea 41...
41
class provider_test extends provider_testcase {
41
class provider_test extends provider_testcase {
Línea 42... Línea 42...
42
 
42
 
43
    /**
43
    /**
44
     * Test getting the context for the user ID related to this plugin.
44
     * Test getting the context for the user ID related to this plugin.
45
     */
45
     */
46
    public function test_get_contexts_for_userid() {
46
    public function test_get_contexts_for_userid(): void {
Línea 47... Línea 47...
47
        $this->resetAfterTest();
47
        $this->resetAfterTest();
48
 
48
 
49
        // Create a user.
49
        // Create a user.
Línea 58... Línea 58...
58
    }
58
    }
Línea 59... Línea 59...
59
 
59
 
60
    /**
60
    /**
61
     * Test that data is exported correctly for this plugin.
61
     * Test that data is exported correctly for this plugin.
62
     */
62
     */
63
    public function test_export_user_data() {
63
    public function test_export_user_data(): void {
Línea 64... Línea 64...
64
        global $DB;
64
        global $DB;
Línea 65... Línea 65...
65
 
65
 
Línea 86... Línea 86...
86
    }
86
    }
Línea 87... Línea 87...
87
 
87
 
88
    /**
88
    /**
89
     * Test for provider::delete_data_for_all_users_in_context().
89
     * Test for provider::delete_data_for_all_users_in_context().
90
     */
90
     */
91
    public function test_delete_data_for_all_users_in_context() {
91
    public function test_delete_data_for_all_users_in_context(): void {
Línea 92... Línea 92...
92
        global $DB;
92
        global $DB;
Línea 93... Línea 93...
93
 
93
 
Línea 112... Línea 112...
112
    }
112
    }
Línea 113... Línea 113...
113
 
113
 
114
    /**
114
    /**
115
     * Test for provider::delete_data_for_user().
115
     * Test for provider::delete_data_for_user().
116
     */
116
     */
117
    public function test_delete_data_for_user() {
117
    public function test_delete_data_for_user(): void {
Línea 118... Línea 118...
118
        global $DB;
118
        global $DB;
Línea 119... Línea 119...
119
 
119
 
Línea 139... Línea 139...
139
    }
139
    }
Línea 140... Línea 140...
140
 
140
 
141
    /**
141
    /**
142
     * Test that only users within a course context are fetched.
142
     * Test that only users within a course context are fetched.
143
     */
143
     */
144
    public function test_get_users_in_context() {
144
    public function test_get_users_in_context(): void {
Línea 145... Línea 145...
145
        $this->resetAfterTest();
145
        $this->resetAfterTest();
Línea 146... Línea 146...
146
 
146
 
Línea 171... Línea 171...
171
    }
171
    }
Línea 172... Línea 172...
172
 
172
 
173
    /**
173
    /**
174
     * Test that data for users in approved userlist is deleted.
174
     * Test that data for users in approved userlist is deleted.
175
     */
175
     */
176
    public function test_delete_data_for_users() {
176
    public function test_delete_data_for_users(): void {
Línea 177... Línea 177...
177
        $this->resetAfterTest();
177
        $this->resetAfterTest();
Línea 178... Línea 178...
178
 
178