Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 38... Línea 38...
38
class externallib_test extends externallib_advanced_testcase {
38
class externallib_test extends externallib_advanced_testcase {
Línea 39... Línea 39...
39
 
39
 
40
    /**
40
    /**
41
     * Test get_choice_results
41
     * Test get_choice_results
42
     */
42
     */
43
    public function test_get_choice_results() {
43
    public function test_get_choice_results(): void {
Línea 44... Línea 44...
44
        global $DB;
44
        global $DB;
Línea 45... Línea 45...
45
 
45
 
Línea 145... Línea 145...
145
    }
145
    }
Línea 146... Línea 146...
146
 
146
 
147
    /**
147
    /**
148
     * Test get_choice_options
148
     * Test get_choice_options
149
     */
149
     */
150
    public function test_get_choice_options() {
150
    public function test_get_choice_options(): void {
Línea 151... Línea 151...
151
        global $DB;
151
        global $DB;
152
 
152
 
153
        // Warningcodes.
153
        // Warningcodes.
Línea 254... Línea 254...
254
    }
254
    }
Línea 255... Línea 255...
255
 
255
 
256
    /**
256
    /**
257
     * Test submit_choice_response
257
     * Test submit_choice_response
258
     */
258
     */
259
    public function test_submit_choice_response() {
259
    public function test_submit_choice_response(): void {
Línea 260... Línea 260...
260
        global $DB;
260
        global $DB;
Línea 261... Línea 261...
261
 
261
 
Línea 293... Línea 293...
293
    }
293
    }
Línea 294... Línea 294...
294
 
294
 
295
    /**
295
    /**
296
     * Test view_choice
296
     * Test view_choice
297
     */
297
     */
298
    public function test_view_choice() {
298
    public function test_view_choice(): void {
Línea 299... Línea 299...
299
        global $DB;
299
        global $DB;
Línea 300... Línea 300...
300
 
300
 
Línea 349... Línea 349...
349
    }
349
    }
Línea 350... Línea 350...
350
 
350
 
351
    /**
351
    /**
352
     * Test get_choices_by_courses
352
     * Test get_choices_by_courses
353
     */
353
     */
354
    public function test_get_choices_by_courses() {
354
    public function test_get_choices_by_courses(): void {
355
        global $DB;
355
        global $DB;
356
        $this->resetAfterTest(true);
356
        $this->resetAfterTest(true);
357
        // As admin.
357
        // As admin.
358
        $this->setAdminUser();
358
        $this->setAdminUser();
Línea 414... Línea 414...
414
    }
414
    }
Línea 415... Línea 415...
415
 
415
 
416
    /**
416
    /**
417
     * Test delete_choice_responses
417
     * Test delete_choice_responses
418
     */
418
     */
419
    public function test_delete_choice_responses() {
419
    public function test_delete_choice_responses(): void {
Línea 420... Línea 420...
420
        global $DB;
420
        global $DB;
Línea 421... Línea 421...
421
 
421