Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 60... Línea 60...
60
    protected $context;
60
    protected $context;
Línea 61... Línea 61...
61
 
61
 
62
    /**
62
    /**
63
     * Test getting the context for the user ID related to this plugin.
63
     * Test getting the context for the user ID related to this plugin.
64
     */
64
     */
65
    public function test_get_contexts_for_userid() {
65
    public function test_get_contexts_for_userid(): void {
66
        $this->resetAfterTest(true);
66
        $this->resetAfterTest(true);
67
        $this->setAdminUser();
67
        $this->setAdminUser();
Línea 68... Línea 68...
68
        $this->h5pactivity_setup_test_scenario_data();
68
        $this->h5pactivity_setup_test_scenario_data();
Línea 78... Línea 78...
78
    }
78
    }
Línea 79... Línea 79...
79
 
79
 
80
    /**
80
    /**
81
     * Test getting the user IDs for the context related to this plugin.
81
     * Test getting the user IDs for the context related to this plugin.
82
     */
82
     */
83
    public function test_get_users_in_context() {
83
    public function test_get_users_in_context(): void {
84
        $this->resetAfterTest(true);
84
        $this->resetAfterTest(true);
85
        $this->setAdminUser();
85
        $this->setAdminUser();
86
        $this->h5pactivity_setup_test_scenario_data();
86
        $this->h5pactivity_setup_test_scenario_data();
Línea 100... Línea 100...
100
    }
100
    }
Línea 101... Línea 101...
101
 
101
 
102
    /**
102
    /**
103
     * Test that data is exported correctly for this plugin.
103
     * Test that data is exported correctly for this plugin.
104
     */
104
     */
105
    public function test_export_user_data() {
105
    public function test_export_user_data(): void {
106
        $this->resetAfterTest(true);
106
        $this->resetAfterTest(true);
107
        $this->setAdminUser();
107
        $this->setAdminUser();
108
        $this->h5pactivity_setup_test_scenario_data();
108
        $this->h5pactivity_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 175... Línea 175...
175
    }
175
    }
Línea 176... Línea 176...
176
 
176
 
177
    /**
177
    /**
178
     * Test for provider::delete_data_for_user().
178
     * Test for provider::delete_data_for_user().
179
     */
179
     */
180
    public function test_delete_data_for_user() {
180
    public function test_delete_data_for_user(): void {
Línea 181... Línea 181...
181
        global $DB;
181
        global $DB;
182
 
182
 
183
        $this->resetAfterTest(true);
183
        $this->resetAfterTest(true);
Línea 224... Línea 224...
224
    }
224
    }
Línea 225... Línea 225...
225
 
225
 
226
    /**
226
    /**
227
     * Test for provider::delete_data_for_users().
227
     * Test for provider::delete_data_for_users().
228
     */
228
     */
229
    public function test_delete_data_for_users() {
229
    public function test_delete_data_for_users(): void {
230
        global $DB;
230
        global $DB;
Línea 231... Línea 231...
231
        $component = 'mod_h5pactivity';
231
        $component = 'mod_h5pactivity';
232
 
232