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
     * Test that a student cannot delete their own comments in frozen contexts via the external service.
73
     * Test that a student cannot delete their own comments in frozen contexts via the external service.
74
     */
74
     */
75
    public function test_delete_student_external() {
75
    public function test_delete_student_external(): void {
76
        global $CFG;
76
        global $CFG;
Línea 77... Línea 77...
77
        require_once($CFG->dirroot . '/comment/lib.php');
77
        require_once($CFG->dirroot . '/comment/lib.php');
Línea 93... Línea 93...
93
    }
93
    }
Línea 94... Línea 94...
94
 
94
 
95
    /**
95
    /**
96
     * Test that a student cannot delete their own comments in frozen contexts.
96
     * Test that a student cannot delete their own comments in frozen contexts.
97
     */
97
     */
98
    public function test_delete_student() {
98
    public function test_delete_student(): void {
99
        global $CFG;
99
        global $CFG;
Línea 100... Línea 100...
100
        require_once($CFG->dirroot . '/comment/lib.php');
100
        require_once($CFG->dirroot . '/comment/lib.php');
Línea 116... Línea 116...
116
    }
116
    }
Línea 117... Línea 117...
117
 
117
 
118
    /**
118
    /**
119
     * Test that an admin cannot delete comments in frozen contexts via the external service.
119
     * Test that an admin cannot delete comments in frozen contexts via the external service.
120
     */
120
     */
121
    public function test_delete_admin_external() {
121
    public function test_delete_admin_external(): void {
122
        global $CFG;
122
        global $CFG;
Línea 123... Línea 123...
123
        require_once($CFG->dirroot . '/comment/lib.php');
123
        require_once($CFG->dirroot . '/comment/lib.php');
Línea 138... Línea 138...
138
    }
138
    }
Línea 139... Línea 139...
139
 
139
 
140
    /**
140
    /**
141
     * Test that an admin cannot delete comments in frozen contexts.
141
     * Test that an admin cannot delete comments in frozen contexts.
142
     */
142
     */
143
    public function test_delete_admin() {
143
    public function test_delete_admin(): void {
144
        global $CFG;
144
        global $CFG;
Línea 145... Línea 145...
145
        require_once($CFG->dirroot . '/comment/lib.php');
145
        require_once($CFG->dirroot . '/comment/lib.php');