Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 53... Línea 53...
53
    protected $context;
53
    protected $context;
Línea 54... Línea 54...
54
 
54
 
55
    /**
55
    /**
56
     * Test getting the context for the user ID related to this plugin.
56
     * Test getting the context for the user ID related to this plugin.
57
     */
57
     */
58
    public function test_get_contexts_for_userid() {
58
    public function test_get_contexts_for_userid(): void {
59
        $this->resetAfterTest(true);
59
        $this->resetAfterTest(true);
60
        $this->setAdminUser();
60
        $this->setAdminUser();
Línea 61... Línea 61...
61
        $this->scorm_setup_test_scenario_data();
61
        $this->scorm_setup_test_scenario_data();
Línea 71... Línea 71...
71
    }
71
    }
Línea 72... Línea 72...
72
 
72
 
73
    /**
73
    /**
74
     * Test getting the user IDs for the context related to this plugin.
74
     * Test getting the user IDs for the context related to this plugin.
75
     */
75
     */
76
    public function test_get_users_in_context() {
76
    public function test_get_users_in_context(): void {
77
        $this->resetAfterTest(true);
77
        $this->resetAfterTest(true);
78
        $this->setAdminUser();
78
        $this->setAdminUser();
79
        $this->scorm_setup_test_scenario_data();
79
        $this->scorm_setup_test_scenario_data();
Línea 93... Línea 93...
93
    }
93
    }
Línea 94... Línea 94...
94
 
94
 
95
    /**
95
    /**
96
     * Test that data is exported correctly for this plugin.
96
     * Test that data is exported correctly for this plugin.
97
     */
97
     */
98
    public function test_export_user_data() {
98
    public function test_export_user_data(): void {
99
        $this->resetAfterTest(true);
99
        $this->resetAfterTest(true);
100
        $this->setAdminUser();
100
        $this->setAdminUser();
Línea 101... Línea 101...
101
        $this->scorm_setup_test_scenario_data();
101
        $this->scorm_setup_test_scenario_data();
Línea 149... Línea 149...
149
    }
149
    }
Línea 150... Línea 150...
150
 
150
 
151
    /**
151
    /**
152
     * Test for provider::delete_data_for_all_users_in_context().
152
     * Test for provider::delete_data_for_all_users_in_context().
153
     */
153
     */
154
    public function test_delete_data_for_all_users_in_context() {
154
    public function test_delete_data_for_all_users_in_context(): void {
Línea 155... Línea 155...
155
        global $DB;
155
        global $DB;
156
 
156
 
157
        $this->resetAfterTest(true);
157
        $this->resetAfterTest(true);
Línea 177... Línea 177...
177
    }
177
    }
Línea 178... Línea 178...
178
 
178
 
179
    /**
179
    /**
180
     * Test for provider::delete_data_for_user().
180
     * Test for provider::delete_data_for_user().
181
     */
181
     */
182
    public function test_delete_data_for_user() {
182
    public function test_delete_data_for_user(): void {
Línea 183... Línea 183...
183
        global $DB;
183
        global $DB;
184
 
184
 
185
        $this->resetAfterTest(true);
185
        $this->resetAfterTest(true);
Línea 221... Línea 221...
221
    }
221
    }
Línea 222... Línea 222...
222
 
222
 
223
    /**
223
    /**
224
     * Test for provider::delete_data_for_users().
224
     * Test for provider::delete_data_for_users().
225
     */
225
     */
226
    public function test_delete_data_for_users() {
226
    public function test_delete_data_for_users(): void {
227
        global $DB;
227
        global $DB;
Línea 228... Línea 228...
228
        $component = 'mod_scorm';
228
        $component = 'mod_scorm';
229
 
229