Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 36... Línea 36...
36
    /**
36
    /**
37
     * Tests for format_topics::get_section_name method with default section names.
37
     * Tests for format_topics::get_section_name method with default section names.
38
     *
38
     *
39
     * @return void
39
     * @return void
40
     */
40
     */
41
    public function test_get_section_name() {
41
    public function test_get_section_name(): void {
42
        global $DB;
42
        global $DB;
43
        $this->resetAfterTest(true);
43
        $this->resetAfterTest(true);
Línea 44... Línea 44...
44
 
44
 
45
        // Generate a course with 5 sections.
45
        // Generate a course with 5 sections.
Línea 62... Línea 62...
62
    /**
62
    /**
63
     * Tests for format_topics::get_section_name method with modified section names.
63
     * Tests for format_topics::get_section_name method with modified section names.
64
     *
64
     *
65
     * @return void
65
     * @return void
66
     */
66
     */
67
    public function test_get_section_name_customised() {
67
    public function test_get_section_name_customised(): void {
68
        global $DB;
68
        global $DB;
69
        $this->resetAfterTest(true);
69
        $this->resetAfterTest(true);
Línea 70... Línea 70...
70
 
70
 
71
        // Generate a course with 5 sections.
71
        // Generate a course with 5 sections.
Línea 96... Línea 96...
96
    /**
96
    /**
97
     * Tests for format_topics::get_default_section_name.
97
     * Tests for format_topics::get_default_section_name.
98
     *
98
     *
99
     * @return void
99
     * @return void
100
     */
100
     */
101
    public function test_get_default_section_name() {
101
    public function test_get_default_section_name(): void {
102
        global $DB;
102
        global $DB;
103
        $this->resetAfterTest(true);
103
        $this->resetAfterTest(true);
Línea 104... Línea 104...
104
 
104
 
105
        // Generate a course with 5 sections.
105
        // Generate a course with 5 sections.
Línea 127... Línea 127...
127
    /**
127
    /**
128
     * Test web service updating section name.
128
     * Test web service updating section name.
129
     *
129
     *
130
     * @return void
130
     * @return void
131
     */
131
     */
132
    public function test_update_inplace_editable() {
132
    public function test_update_inplace_editable(): void {
133
        global $CFG, $DB, $PAGE;
133
        global $CFG, $DB, $PAGE;
134
        require_once($CFG->dirroot . '/lib/external/externallib.php');
134
        require_once($CFG->dirroot . '/lib/external/externallib.php');
Línea 135... Línea 135...
135
 
135
 
136
        $this->resetAfterTest();
136
        $this->resetAfterTest();
Línea 162... Línea 162...
162
    /**
162
    /**
163
     * Test callback updating section name.
163
     * Test callback updating section name.
164
     *
164
     *
165
     * @return void
165
     * @return void
166
     */
166
     */
167
    public function test_inplace_editable() {
167
    public function test_inplace_editable(): void {
168
        global $DB, $PAGE;
168
        global $DB, $PAGE;
Línea 169... Línea 169...
169
 
169
 
170
        $this->resetAfterTest();
170
        $this->resetAfterTest();
171
        $user = $this->getDataGenerator()->create_user();
171
        $user = $this->getDataGenerator()->create_user();
Línea 196... Línea 196...
196
    /**
196
    /**
197
     * Test get_default_course_enddate.
197
     * Test get_default_course_enddate.
198
     *
198
     *
199
     * @return void
199
     * @return void
200
     */
200
     */
201
    public function test_default_course_enddate() {
201
    public function test_default_course_enddate(): void {
202
        global $CFG, $DB;
202
        global $CFG, $DB;
Línea 203... Línea 203...
203
 
203
 
Línea 204... Línea 204...
204
        $this->resetAfterTest(true);
204
        $this->resetAfterTest(true);