Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 52... Línea 52...
52
     *
52
     *
53
     * @dataProvider export_post_provider
53
     * @dataProvider export_post_provider
54
     * @param bool $istimed True if this is a timed post
54
     * @param bool $istimed True if this is a timed post
55
     * @param int $addtime Seconds to be added to the current time
55
     * @param int $addtime Seconds to be added to the current time
56
     */
56
     */
57
    public function test_export_post($istimed = false, $addtime = 0) {
57
    public function test_export_post($istimed = false, $addtime = 0): void {
58
        global $CFG, $PAGE;
58
        global $CFG, $PAGE;
59
        $this->resetAfterTest();
59
        $this->resetAfterTest();
Línea 60... Línea 60...
60
 
60
 
61
        $CFG->enableportfolios = true;
61
        $CFG->enableportfolios = true;
Línea 217... Línea 217...
217
    }
217
    }
Línea 218... Línea 218...
218
 
218
 
219
    /**
219
    /**
220
     * Test exporting of a deleted post.
220
     * Test exporting of a deleted post.
221
     */
221
     */
222
    public function test_export_deleted_post() {
222
    public function test_export_deleted_post(): void {
223
        global $CFG, $PAGE;
223
        global $CFG, $PAGE;
Línea 224... Línea 224...
224
        $this->resetAfterTest();
224
        $this->resetAfterTest();
225
 
225
 
Línea 325... Línea 325...
325
    }
325
    }
Línea 326... Línea 326...
326
 
326
 
327
    /**
327
    /**
328
     * Test exporting of a post the user can't view.
328
     * Test exporting of a post the user can't view.
329
     */
329
     */
330
    public function test_export_post_no_view_capability() {
330
    public function test_export_post_no_view_capability(): void {
331
        global $CFG, $PAGE;
331
        global $CFG, $PAGE;
Línea 332... Línea 332...
332
        $this->resetAfterTest();
332
        $this->resetAfterTest();
333
 
333