Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 33... Línea 33...
33
    }
33
    }
Línea 34... Línea 34...
34
 
34
 
35
    /**
35
    /**
36
     * Tests when we update a course with automatic end date set.
36
     * Tests when we update a course with automatic end date set.
37
     */
37
     */
38
    public function test_course_updated_with_automatic_end_date() {
38
    public function test_course_updated_with_automatic_end_date(): void {
Línea 39... Línea 39...
39
        global $DB;
39
        global $DB;
40
 
40
 
41
        // Generate a course with some sections.
41
        // Generate a course with some sections.
Línea 62... Línea 62...
62
    }
62
    }
Línea 63... Línea 63...
63
 
63
 
64
    /**
64
    /**
65
     * Tests when we update a course with automatic end date set but no actual change is made.
65
     * Tests when we update a course with automatic end date set but no actual change is made.
66
     */
66
     */
67
    public function test_course_updated_with_automatic_end_date_no_change() {
67
    public function test_course_updated_with_automatic_end_date_no_change(): void {
Línea 68... Línea 68...
68
        global $DB;
68
        global $DB;
69
 
69
 
70
        // Generate a course with some sections.
70
        // Generate a course with some sections.
Línea 88... Línea 88...
88
    }
88
    }
Línea 89... Línea 89...
89
 
89
 
90
    /**
90
    /**
91
     * Tests when we update a course without automatic end date set.
91
     * Tests when we update a course without automatic end date set.
92
     */
92
     */
93
    public function test_course_updated_without_automatic_end_date() {
93
    public function test_course_updated_without_automatic_end_date(): void {
Línea 94... Línea 94...
94
        global $DB;
94
        global $DB;
95
 
95
 
96
        // Generate a course with some sections.
96
        // Generate a course with some sections.
Línea 115... Línea 115...
115
    }
115
    }
Línea 116... Línea 116...
116
 
116
 
117
    /**
117
    /**
118
     * Tests when we adding a course section with automatic end date set.
118
     * Tests when we adding a course section with automatic end date set.
119
     */
119
     */
120
    public function test_course_section_created_with_automatic_end_date() {
120
    public function test_course_section_created_with_automatic_end_date(): void {
Línea 121... Línea 121...
121
        global $DB;
121
        global $DB;
122
 
122
 
123
        $numsections = 6;
123
        $numsections = 6;
Línea 141... Línea 141...
141
    }
141
    }
Línea 142... Línea 142...
142
 
142
 
143
    /**
143
    /**
144
     * Tests when we update a course without automatic end date set.
144
     * Tests when we update a course without automatic end date set.
145
     */
145
     */
146
    public function test_create_section_without_automatic_end_date() {
146
    public function test_create_section_without_automatic_end_date(): void {
Línea 147... Línea 147...
147
        global $DB;
147
        global $DB;
148
 
148
 
149
        // Generate a course with some sections.
149
        // Generate a course with some sections.
Línea 173... Línea 173...
173
    }
173
    }
Línea 174... Línea 174...
174
 
174
 
175
    /**
175
    /**
176
     * Tests when we deleting a course section with automatic end date set.
176
     * Tests when we deleting a course section with automatic end date set.
177
     */
177
     */
178
    public function test_course_section_deleted_with_automatic_end_date() {
178
    public function test_course_section_deleted_with_automatic_end_date(): void {
Línea 179... Línea 179...
179
        global $DB;
179
        global $DB;
180
 
180
 
181
        // Generate a course with some sections.
181
        // Generate a course with some sections.