Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 99... Línea 99...
99
    }
99
    }
Línea 100... Línea 100...
100
 
100
 
101
    /**
101
    /**
102
     * Test for provider::get_metadata().
102
     * Test for provider::get_metadata().
103
     */
103
     */
104
    public function test_get_metadata() {
104
    public function test_get_metadata(): void {
105
        $collection = new collection('mod_glossary');
105
        $collection = new collection('mod_glossary');
106
        $newcollection = provider::get_metadata($collection);
106
        $newcollection = provider::get_metadata($collection);
107
        $itemcollection = $newcollection->get_collection();
107
        $itemcollection = $newcollection->get_collection();
Línea 122... Línea 122...
122
    }
122
    }
Línea 123... Línea 123...
123
 
123
 
124
    /**
124
    /**
125
     * Test for provider::get_contexts_for_userid().
125
     * Test for provider::get_contexts_for_userid().
126
     */
126
     */
127
    public function test_get_contexts_for_userid() {
127
    public function test_get_contexts_for_userid(): void {
Línea 128... Línea 128...
128
        $cm = get_coursemodule_from_instance('glossary', $this->glossary->id);
128
        $cm = get_coursemodule_from_instance('glossary', $this->glossary->id);
129
 
129
 
130
        $contextlist = provider::get_contexts_for_userid($this->student->id);
130
        $contextlist = provider::get_contexts_for_userid($this->student->id);
Línea 135... Línea 135...
135
    }
135
    }
Línea 136... Línea 136...
136
 
136
 
137
    /**
137
    /**
138
     * Test for provider::get_users_in_context().
138
     * Test for provider::get_users_in_context().
139
     */
139
     */
140
    public function test_get_users_in_context() {
140
    public function test_get_users_in_context(): void {
141
        $component = 'mod_glossary';
141
        $component = 'mod_glossary';
142
        $cm = get_coursemodule_from_instance('glossary', $this->glossary->id);
142
        $cm = get_coursemodule_from_instance('glossary', $this->glossary->id);
Línea 143... Línea 143...
143
        $cmcontext = \context_module::instance($cm->id);
143
        $cmcontext = \context_module::instance($cm->id);
Línea 156... Línea 156...
156
    }
156
    }
Línea 157... Línea 157...
157
 
157
 
158
    /**
158
    /**
159
     * Test for provider::export_user_data().
159
     * Test for provider::export_user_data().
160
     */
160
     */
161
    public function test_export_for_context() {
161
    public function test_export_for_context(): void {
162
        $cm = get_coursemodule_from_instance('glossary', $this->glossary->id);
162
        $cm = get_coursemodule_from_instance('glossary', $this->glossary->id);
Línea 163... Línea 163...
163
        $cmcontext = \context_module::instance($cm->id);
163
        $cmcontext = \context_module::instance($cm->id);
164
 
164
 
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_all_users_in_context().
178
     * Test for provider::delete_data_for_all_users_in_context().
179
     */
179
     */
180
    public function test_delete_data_for_all_users_in_context() {
180
    public function test_delete_data_for_all_users_in_context(): void {
Línea 181... Línea 181...
181
        global $DB;
181
        global $DB;
182
 
182
 
183
        $generator = $this->getDataGenerator();
183
        $generator = $this->getDataGenerator();
Línea 230... Línea 230...
230
    }
230
    }
Línea 231... Línea 231...
231
 
231
 
232
    /**
232
    /**
233
     * Test for provider::delete_data_for_user().
233
     * Test for provider::delete_data_for_user().
234
     */
234
     */
235
    public function test_delete_data_for_user() {
235
    public function test_delete_data_for_user(): void {
236
        global $DB;
236
        global $DB;
Línea 237... Línea 237...
237
        $generator = $this->getDataGenerator();
237
        $generator = $this->getDataGenerator();
238
 
238
 
Línea 314... Línea 314...
314
    }
314
    }
Línea 315... Línea 315...
315
 
315
 
316
    /**
316
    /**
317
     * Test for provider::delete_data_for_users().
317
     * Test for provider::delete_data_for_users().
318
     */
318
     */
319
    public function test_delete_data_for_users() {
319
    public function test_delete_data_for_users(): void {
320
        global $DB;
320
        global $DB;
Línea 321... Línea 321...
321
        $generator = $this->getDataGenerator();
321
        $generator = $this->getDataGenerator();
322
 
322