Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 32... Línea 32...
32
class restore_date_test extends \restore_date_testcase {
32
class restore_date_test extends \restore_date_testcase {
Línea 33... Línea 33...
33
 
33
 
34
    /**
34
    /**
35
     * Test restore dates.
35
     * Test restore dates.
36
     */
36
     */
37
    public function test_restore_dates() {
37
    public function test_restore_dates(): void {
Línea 38... Línea 38...
38
        global $DB, $USER;
38
        global $DB, $USER;
39
 
39
 
40
        $record = ['cutoffdate' => 100, 'allowsubmissionsfromdate' => 100, 'duedate' => 100, 'timemodified' => 100];
40
        $record = ['cutoffdate' => 100, 'allowsubmissionsfromdate' => 100, 'duedate' => 100, 'timemodified' => 100];
Línea 84... Línea 84...
84
    }
84
    }
Línea 85... Línea 85...
85
 
85
 
86
    /**
86
    /**
87
     * Test backup and restore of an assignment with non-default settings.
87
     * Test backup and restore of an assignment with non-default settings.
88
     */
88
     */
89
    public function test_restore_settings() {
89
    public function test_restore_settings(): void {
90
        global $DB;
90
        global $DB;
91
        $generator = $this->getDataGenerator();
91
        $generator = $this->getDataGenerator();
92
        $course = $generator->create_course(['startdate' => $this->startdate]);
92
        $course = $generator->create_course(['startdate' => $this->startdate]);
93
        $record = [
93
        $record = [