Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 70... Línea 70...
70
    }
70
    }
Línea 71... Línea 71...
71
 
71
 
72
    /**
72
    /**
73
     * @dataProvider get_timestamp_min_limit_test_cases()
73
     * @dataProvider get_timestamp_min_limit_test_cases()
74
     */
74
     */
75
    public function test_get_timestamp_min_limit($starttime, $min, $expected) {
75
    public function test_get_timestamp_min_limit($starttime, $min, $expected): void {
76
        $class = calendar_event_exporter::class;
76
        $class = calendar_event_exporter::class;
77
        $mock = $this->getMockBuilder($class)
77
        $mock = $this->getMockBuilder($class)
78
            ->disableOriginalConstructor()
78
            ->disableOriginalConstructor()
79
            ->onlyMethods([])
79
            ->onlyMethods([])
Línea 126... Línea 126...
126
    }
126
    }
Línea 127... Línea 127...
127
 
127
 
128
    /**
128
    /**
129
     * @dataProvider get_timestamp_max_limit_test_cases()
129
     * @dataProvider get_timestamp_max_limit_test_cases()
130
     */
130
     */
131
    public function test_get_timestamp_max_limit($starttime, $max, $expected) {
131
    public function test_get_timestamp_max_limit($starttime, $max, $expected): void {
132
        $class = calendar_event_exporter::class;
132
        $class = calendar_event_exporter::class;
133
        $mock = $this->getMockBuilder($class)
133
        $mock = $this->getMockBuilder($class)
134
            ->disableOriginalConstructor()
134
            ->disableOriginalConstructor()
135
            ->onlyMethods([])
135
            ->onlyMethods([])
Línea 143... Línea 143...
143
    }
143
    }
Línea 144... Línea 144...
144
 
144
 
145
    /**
145
    /**
146
     * Exporting a course event should generate the course URL.
146
     * Exporting a course event should generate the course URL.
147
     */
147
     */
148
    public function test_calendar_event_exporter_course_url_course_event() {
148
    public function test_calendar_event_exporter_course_url_course_event(): void {
149
        global $CFG, $PAGE;
149
        global $CFG, $PAGE;
Línea 150... Línea 150...
150
        require_once($CFG->dirroot . '/course/lib.php');
150
        require_once($CFG->dirroot . '/course/lib.php');
151
 
151
 
Línea 183... Línea 183...
183
    }
183
    }
Línea 184... Línea 184...
184
 
184
 
185
    /**
185
    /**
186
     * Exporting a user event should generate the site course URL.
186
     * Exporting a user event should generate the site course URL.
187
     */
187
     */
188
    public function test_calendar_event_exporter_course_url_user_event() {
188
    public function test_calendar_event_exporter_course_url_user_event(): void {
189
        global $CFG, $PAGE;
189
        global $CFG, $PAGE;
Línea 190... Línea 190...
190
        require_once($CFG->dirroot . '/course/lib.php');
190
        require_once($CFG->dirroot . '/course/lib.php');
191
 
191
 
Línea 222... Línea 222...
222
    }
222
    }
Línea 223... Línea 223...
223
 
223
 
224
    /**
224
    /**
225
     * Popup name respects filters for course shortname.
225
     * Popup name respects filters for course shortname.
226
     */
226
     */
227
    public function test_calendar_event_exporter_popupname_course_shortname_strips_links() {
227
    public function test_calendar_event_exporter_popupname_course_shortname_strips_links(): void {
Línea 228... Línea 228...
228
        global $CFG, $PAGE;
228
        global $CFG, $PAGE;
229
 
229
 
230
        $this->resetAfterTest(true);
230
        $this->resetAfterTest(true);
Línea 260... Línea 260...
260
    }
260
    }
Línea 261... Línea 261...
261
 
261
 
262
    /**
262
    /**
263
     * Exported event contains the exported course.
263
     * Exported event contains the exported course.
264
     */
264
     */
265
    public function test_calendar_event_exporter_exports_course() {
265
    public function test_calendar_event_exporter_exports_course(): void {
Línea 266... Línea 266...
266
        global $CFG, $PAGE;
266
        global $CFG, $PAGE;
267
 
267
 
268
        $this->resetAfterTest(true);
268
        $this->resetAfterTest(true);