Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 93... Línea 93...
93
    }
93
    }
Línea 94... Línea 94...
94
 
94
 
95
    /**
95
    /**
96
     * This function tests backup and restore of question tags and course level question tags.
96
     * This function tests backup and restore of question tags and course level question tags.
97
     */
97
     */
98
    public function test_backup_question_tags() {
98
    public function test_backup_question_tags(): void {
Línea 99... Línea 99...
99
        global $DB;
99
        global $DB;
100
 
100
 
Línea 215... Línea 215...
215
    }
215
    }
Línea 216... Línea 216...
216
 
216
 
217
    /**
217
    /**
218
     * Test that the question author is retained when they are enrolled in to the course.
218
     * Test that the question author is retained when they are enrolled in to the course.
219
     */
219
     */
220
    public function test_backup_question_author_retained_when_enrolled() {
220
    public function test_backup_question_author_retained_when_enrolled(): void {
221
        global $DB, $USER, $CFG;
221
        global $DB, $USER, $CFG;
222
        $this->resetAfterTest();
222
        $this->resetAfterTest();
Línea 223... Línea 223...
223
        $this->setAdminUser();
223
        $this->setAdminUser();
Línea 276... Línea 276...
276
 
276
 
277
    /**
277
    /**
278
     * Test that the question author is retained when they are not enrolled in to the course,
278
     * Test that the question author is retained when they are not enrolled in to the course,
279
     * but we are restoring the backup at the same site.
279
     * but we are restoring the backup at the same site.
280
     */
280
     */
281
    public function test_backup_question_author_retained_when_not_enrolled() {
281
    public function test_backup_question_author_retained_when_not_enrolled(): void {
282
        global $DB, $USER, $CFG;
282
        global $DB, $USER, $CFG;
283
        $this->resetAfterTest();
283
        $this->resetAfterTest();
Línea 284... Línea 284...
284
        $this->setAdminUser();
284
        $this->setAdminUser();
Línea 333... Línea 333...
333
 
333
 
334
    /**
334
    /**
335
     * Test that the current user is set as a question author when we are restoring the backup
335
     * Test that the current user is set as a question author when we are restoring the backup
336
     * at the another site and the question author is not enrolled in to the course.
336
     * at the another site and the question author is not enrolled in to the course.
337
     */
337
     */
338
    public function test_backup_question_author_reset() {
338
    public function test_backup_question_author_reset(): void {
339
        global $DB, $USER, $CFG;
339
        global $DB, $USER, $CFG;
340
        $this->resetAfterTest();
340
        $this->resetAfterTest();
Línea 341... Línea 341...
341
        $this->setAdminUser();
341
        $this->setAdminUser();