Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 34... Línea 34...
34
class format_weeks_test extends \advanced_testcase {
34
class format_weeks_test extends \advanced_testcase {
Línea 35... Línea 35...
35
 
35
 
36
    /**
36
    /**
37
     * Tests for format_weeks::get_section_name method with default section names.
37
     * Tests for format_weeks::get_section_name method with default section names.
38
     */
38
     */
39
    public function test_get_section_name() {
39
    public function test_get_section_name(): void {
40
        global $DB;
40
        global $DB;
Línea 41... Línea 41...
41
        $this->resetAfterTest(true);
41
        $this->resetAfterTest(true);
42
 
42
 
Línea 58... Línea 58...
58
    }
58
    }
Línea 59... Línea 59...
59
 
59
 
60
    /**
60
    /**
61
     * Tests for format_weeks::get_section_name method with modified section names.
61
     * Tests for format_weeks::get_section_name method with modified section names.
62
     */
62
     */
63
    public function test_get_section_name_customised() {
63
    public function test_get_section_name_customised(): void {
64
        global $DB;
64
        global $DB;
Línea 65... Línea 65...
65
        $this->resetAfterTest(true);
65
        $this->resetAfterTest(true);
66
 
66
 
Línea 90... Línea 90...
90
    }
90
    }
Línea 91... Línea 91...
91
 
91
 
92
    /**
92
    /**
93
     * Tests for format_weeks::get_default_section_name.
93
     * Tests for format_weeks::get_default_section_name.
94
     */
94
     */
95
    public function test_get_default_section_name() {
95
    public function test_get_default_section_name(): void {
96
        global $DB;
96
        global $DB;
Línea 97... Línea 97...
97
        $this->resetAfterTest(true);
97
        $this->resetAfterTest(true);
98
 
98
 
Línea 125... Línea 125...
125
    }
125
    }
Línea 126... Línea 126...
126
 
126
 
127
    /**
127
    /**
128
     * Test web service updating section name
128
     * Test web service updating section name
129
     */
129
     */
130
    public function test_update_inplace_editable() {
130
    public function test_update_inplace_editable(): void {
131
        global $CFG, $DB, $PAGE;
131
        global $CFG, $DB, $PAGE;
Línea 132... Línea 132...
132
        require_once($CFG->dirroot . '/lib/external/externallib.php');
132
        require_once($CFG->dirroot . '/lib/external/externallib.php');
133
 
133
 
Línea 158... Línea 158...
158
    }
158
    }
Línea 159... Línea 159...
159
 
159
 
160
    /**
160
    /**
161
     * Test callback updating section name
161
     * Test callback updating section name
162
     */
162
     */
163
    public function test_inplace_editable() {
163
    public function test_inplace_editable(): void {
Línea 164... Línea 164...
164
        global $CFG, $DB, $PAGE;
164
        global $CFG, $DB, $PAGE;
165
 
165
 
166
        $this->resetAfterTest();
166
        $this->resetAfterTest();
Línea 192... Línea 192...
192
    /**
192
    /**
193
     * Test get_default_course_enddate.
193
     * Test get_default_course_enddate.
194
     *
194
     *
195
     * @return void
195
     * @return void
196
     */
196
     */
197
    public function test_default_course_enddate() {
197
    public function test_default_course_enddate(): void {
198
        global $CFG, $DB, $PAGE;
198
        global $CFG, $DB, $PAGE;
Línea 199... Línea 199...
199
 
199
 
Línea 200... Línea 200...
200
        $this->resetAfterTest(true);
200
        $this->resetAfterTest(true);