Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 161... Línea 161...
161
    }
161
    }
Línea 162... Línea 162...
162
 
162
 
163
    /**
163
    /**
164
     * Test that a block on the dashboard is exported.
164
     * Test that a block on the dashboard is exported.
165
     */
165
     */
166
    public function test_user_block() {
166
    public function test_user_block(): void {
Línea 167... Línea 167...
167
        $this->resetAfterTest();
167
        $this->resetAfterTest();
168
 
168
 
169
        $title = 'Example title';
169
        $title = 'Example title';
Línea 204... Línea 204...
204
    }
204
    }
Línea 205... Línea 205...
205
 
205
 
206
    /**
206
    /**
207
     * Test that a block on the dashboard which is not configured is _not_ exported.
207
     * Test that a block on the dashboard which is not configured is _not_ exported.
208
     */
208
     */
209
    public function test_user_block_unconfigured() {
209
    public function test_user_block_unconfigured(): void {
Línea 210... Línea 210...
210
        global $DB;
210
        global $DB;
Línea 211... Línea 211...
211
 
211
 
Línea 240... Línea 240...
240
    }
240
    }
Línea 241... Línea 241...
241
 
241
 
242
    /**
242
    /**
243
     * Test that a block on the dashboard is exported.
243
     * Test that a block on the dashboard is exported.
244
     */
244
     */
245
    public function test_user_multiple_blocks_exported() {
245
    public function test_user_multiple_blocks_exported(): void {
Línea 246... Línea 246...
246
        $this->resetAfterTest();
246
        $this->resetAfterTest();
247
 
247
 
248
        $title = 'Example title';
248
        $title = 'Example title';
Línea 284... Línea 284...
284
    }
284
    }
Línea 285... Línea 285...
285
 
285
 
286
    /**
286
    /**
287
     * Test that a block on the dashboard is not exported.
287
     * Test that a block on the dashboard is not exported.
288
     */
288
     */
289
    public function test_course_blocks_not_exported() {
289
    public function test_course_blocks_not_exported(): void {
Línea 290... Línea 290...
290
        $this->resetAfterTest();
290
        $this->resetAfterTest();
291
 
291
 
292
        $title = 'Example title';
292
        $title = 'Example title';
Línea 309... Línea 309...
309
    }
309
    }
Línea 310... Línea 310...
310
 
310
 
311
    /**
311
    /**
312
     * Test that a block on the dashboard is exported.
312
     * Test that a block on the dashboard is exported.
313
     */
313
     */
314
    public function test_mixed_multiple_blocks_exported() {
314
    public function test_mixed_multiple_blocks_exported(): void {
Línea 315... Línea 315...
315
        $this->resetAfterTest();
315
        $this->resetAfterTest();
316
 
316
 
317
        $title = 'Example title';
317
        $title = 'Example title';
Línea 347... Línea 347...
347
    }
347
    }
Línea 348... Línea 348...
348
 
348
 
349
    /**
349
    /**
350
     * Test that only users with a user context HTML block are fetched.
350
     * Test that only users with a user context HTML block are fetched.
351
     */
351
     */
352
    public function test_get_users_in_context() {
352
    public function test_get_users_in_context(): void {
Línea 353... Línea 353...
353
        $this->resetAfterTest();
353
        $this->resetAfterTest();
354
 
354
 
355
        $component = 'block_html';
355
        $component = 'block_html';
Línea 390... Línea 390...
390
    }
390
    }
Línea 391... Línea 391...
391
 
391
 
392
    /**
392
    /**
393
     * Test that data for users in approved userlist is deleted.
393
     * Test that data for users in approved userlist is deleted.
394
     */
394
     */
395
    public function test_delete_data_for_users() {
395
    public function test_delete_data_for_users(): void {
Línea 396... Línea 396...
396
        $this->resetAfterTest();
396
        $this->resetAfterTest();
397
 
397
 
398
        $component = 'block_html';
398
        $component = 'block_html';