Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 40... Línea 40...
40
     *
40
     *
41
     * @dataProvider locked_context_provider
41
     * @dataProvider locked_context_provider
42
     * @param   string[]    $lockedcontexts The list of contexts, by name, to mark as locked
42
     * @param   string[]    $lockedcontexts The list of contexts, by name, to mark as locked
43
     * @param   string[]    $blocked The list of contexts which will be 'blocked' by has_capability
43
     * @param   string[]    $blocked The list of contexts which will be 'blocked' by has_capability
44
     */
44
     */
45
    public function test_locked_contexts($lockedcontexts, $blocked) {
45
    public function test_locked_contexts($lockedcontexts, $blocked): void {
46
        global $DB;
46
        global $DB;
Línea 47... Línea 47...
47
 
47
 
48
        $this->resetAfterTest();
48
        $this->resetAfterTest();
Línea 205... Línea 205...
205
     *
205
     *
206
     * @dataProvider locked_context_provider
206
     * @dataProvider locked_context_provider
207
     * @param   string[]    $lockedcontexts The list of contexts, by name, to mark as locked
207
     * @param   string[]    $lockedcontexts The list of contexts, by name, to mark as locked
208
     * @param   string[]    $blocked The list of contexts which will be 'blocked' by has_capability
208
     * @param   string[]    $blocked The list of contexts which will be 'blocked' by has_capability
209
     */
209
     */
210
    public function test_locked_contexts_for_admin_with_config($lockedcontexts, $blocked) {
210
    public function test_locked_contexts_for_admin_with_config($lockedcontexts, $blocked): void {
211
        global $DB;
211
        global $DB;
Línea 212... Línea 212...
212
 
212
 
213
        $this->resetAfterTest();
213
        $this->resetAfterTest();
214
        set_config('contextlocking', 1);
214
        set_config('contextlocking', 1);