Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 41... Línea 41...
41
 
41
 
42
    /*
42
    /*
43
     * Test core_files_external::upload().
43
     * Test core_files_external::upload().
Línea 44... Línea 44...
44
     */
44
     */
45
 
45
 
Línea 46... Línea 46...
46
    public function test_upload() {
46
    public function test_upload(): void {
47
        global $USER;
47
        global $USER;
48
 
48
 
Línea 107... Línea 107...
107
    }
107
    }
Línea 108... Línea 108...
108
 
108
 
109
    /*
109
    /*
110
     * Make sure only user component is allowed in  core_files_external::upload().
110
     * Make sure only user component is allowed in  core_files_external::upload().
111
     */
111
     */
112
    public function test_upload_param_component() {
112
    public function test_upload_param_component(): void {
Línea 113... Línea 113...
113
        global $USER;
113
        global $USER;
114
 
114
 
115
        $this->resetAfterTest();
115
        $this->resetAfterTest();
Línea 132... Línea 132...
132
    }
132
    }
Línea 133... Línea 133...
133
 
133
 
134
    /*
134
    /*
135
     * Make sure only draft areas are allowed in  core_files_external::upload().
135
     * Make sure only draft areas are allowed in  core_files_external::upload().
136
     */
136
     */
137
    public function test_upload_param_area() {
137
    public function test_upload_param_area(): void {
Línea 138... Línea 138...
138
        global $USER;
138
        global $USER;
139
 
139
 
140
        $this->resetAfterTest();
140
        $this->resetAfterTest();
Línea 160... Línea 160...
160
    }
160
    }
Línea 161... Línea 161...
161
 
161
 
162
    /**
162
    /**
163
     * Test getting a list of files with and without a context ID.
163
     * Test getting a list of files with and without a context ID.
164
     */
164
     */
165
    public function test_get_files() {
165
    public function test_get_files(): void {
Línea 166... Línea 166...
166
        global $USER, $DB;
166
        global $USER, $DB;
Línea 167... Línea 167...
167
 
167
 
Línea 301... Línea 301...
301
    }
301
    }
Línea 302... Línea 302...
302
 
302
 
303
    /**
303
    /**
304
     * Test delete draft files
304
     * Test delete draft files
305
     */
305
     */
306
    public function test_delete_draft_files() {
306
    public function test_delete_draft_files(): void {
Línea 307... Línea 307...
307
        global $USER;
307
        global $USER;
308
 
308
 
Línea 354... Línea 354...
354
    }
354
    }
Línea 355... Línea 355...
355
 
355
 
356
    /**
356
    /**
357
     * Test get_unused_draft_itemid.
357
     * Test get_unused_draft_itemid.
358
     */
358
     */
359
    public function test_get_unused_draft_itemid() {
359
    public function test_get_unused_draft_itemid(): void {
Línea 360... Línea 360...
360
        global $USER;
360
        global $USER;
361
 
361