Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 44... Línea 44...
44
    }
44
    }
Línea 45... Línea 45...
45
 
45
 
46
    /**
46
    /**
47
     * Test getting the context for the user ID related to this plugin.
47
     * Test getting the context for the user ID related to this plugin.
48
     */
48
     */
Línea 49... Línea 49...
49
    public function test_get_contexts_for_userid() {
49
    public function test_get_contexts_for_userid(): void {
50
 
50
 
Línea 51... Línea 51...
51
        $user = $this->getDataGenerator()->create_user();
51
        $user = $this->getDataGenerator()->create_user();
Línea 59... Línea 59...
59
    }
59
    }
Línea 60... Línea 60...
60
 
60
 
61
    /**
61
    /**
62
     * Test that data is exported correctly for this plugin.
62
     * Test that data is exported correctly for this plugin.
63
     */
63
     */
Línea 64... Línea 64...
64
    public function test_export_user_data() {
64
    public function test_export_user_data(): void {
65
 
65
 
Línea 66... Línea 66...
66
        $user = $this->getDataGenerator()->create_user();
66
        $user = $this->getDataGenerator()->create_user();
Línea 84... Línea 84...
84
    }
84
    }
Línea 85... Línea 85...
85
 
85
 
86
    /**
86
    /**
87
     * Test that only users within a course context are fetched.
87
     * Test that only users within a course context are fetched.
88
     */
88
     */
89
    public function test_get_users_in_context() {
89
    public function test_get_users_in_context(): void {
Línea 90... Línea 90...
90
        $component = 'block_rss_client';
90
        $component = 'block_rss_client';
91
 
91
 
92
        // Create a user.
92
        // Create a user.
Línea 114... Línea 114...
114
    }
114
    }
Línea 115... Línea 115...
115
 
115
 
116
    /**
116
    /**
117
     * Test that data for users in approved userlist is deleted.
117
     * Test that data for users in approved userlist is deleted.
118
     */
118
     */
119
    public function test_delete_data_for_users() {
119
    public function test_delete_data_for_users(): void {
Línea 120... Línea 120...
120
        $component = 'block_rss_client';
120
        $component = 'block_rss_client';
121
 
121
 
122
        $user1 = $this->getDataGenerator()->create_user();
122
        $user1 = $this->getDataGenerator()->create_user();
Línea 171... Línea 171...
171
    }
171
    }
Línea 172... Línea 172...
172
 
172
 
173
    /**
173
    /**
174
     * Test that user data is deleted using the context.
174
     * Test that user data is deleted using the context.
175
     */
175
     */
176
    public function test_delete_data_for_all_users_in_context() {
176
    public function test_delete_data_for_all_users_in_context(): void {
Línea 177... Línea 177...
177
        global $DB;
177
        global $DB;
178
 
178
 
Línea 193... Línea 193...
193
    }
193
    }
Línea 194... Línea 194...
194
 
194
 
195
    /**
195
    /**
196
     * Test that user data is deleted for this user.
196
     * Test that user data is deleted for this user.
197
     */
197
     */
198
    public function test_delete_data_for_user() {
198
    public function test_delete_data_for_user(): void {
Línea 199... Línea 199...
199
        global $DB;
199
        global $DB;
200
 
200