Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 30... Línea 30...
30
 
30
 
31
    /**
31
    /**
32
     * Ensure that a file will be loaded in an instance of the caller when supplied valid and
32
     * Ensure that a file will be loaded in an instance of the caller when supplied valid and
33
     * accessible post and attachment file ids.
33
     * accessible post and attachment file ids.
34
     */
34
     */
35
    public function test_file_in_user_post_is_loaded() {
35
    public function test_file_in_user_post_is_loaded(): void {
36
        global $CFG;
36
        global $CFG;
37
        require_once($CFG->dirroot . '/mod/forum/locallib.php');
37
        require_once($CFG->dirroot . '/mod/forum/locallib.php');
Línea 38... Línea 38...
38
        $this->resetAfterTest(true);
38
        $this->resetAfterTest(true);
Línea 75... Línea 75...
75
 
75
 
76
    /**
76
    /**
77
     * Ensure that files will not be loaded if the supplied attachment id is for a file that is not attached to
77
     * Ensure that files will not be loaded if the supplied attachment id is for a file that is not attached to
78
     * the supplied post id.
78
     * the supplied post id.
79
     */
79
     */
80
    public function test_file_not_in_user_post_not_loaded() {
80
    public function test_file_not_in_user_post_not_loaded(): void {
81
        global $CFG;
81
        global $CFG;
82
        require_once($CFG->dirroot . '/mod/forum/locallib.php');
82
        require_once($CFG->dirroot . '/mod/forum/locallib.php');
Línea 83... Línea 83...
83
        $this->resetAfterTest(true);
83
        $this->resetAfterTest(true);