Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 316... Línea 316...
316
    }
316
    }
Línea 317... Línea 317...
317
 
317
 
318
    /**
318
    /**
319
     * Test that cached files can be retrieved via a key.
319
     * Test that cached files can be retrieved via a key.
320
     */
320
     */
Línea 321... Línea 321...
321
    public function test_getCachedAssets() {
321
    public function test_getCachedAssets(): void {
Línea 322... Línea 322...
322
 
322
 
323
        $basedirectory = $this->h5p_tempath . '/' . 'test-1.0';
323
        $basedirectory = $this->h5p_tempath . '/' . 'test-1.0';
Línea 412... Línea 412...
412
    }
412
    }
Línea 413... Línea 413...
413
 
413
 
414
    /**
414
    /**
415
     * Retrieve content from a file given a specific path.
415
     * Retrieve content from a file given a specific path.
416
     */
416
     */
417
    public function test_getContent() {
417
    public function test_getContent(): void {
Línea 418... Línea 418...
418
        $basedirectory = $this->h5p_tempath . '/' . 'test-1.0';
418
        $basedirectory = $this->h5p_tempath . '/' . 'test-1.0';
419
 
419
 
420
        $machinename = 'TestLib';
420
        $machinename = 'TestLib';
Línea 436... Línea 436...
436
    }
436
    }
Línea 437... Línea 437...
437
 
437
 
438
    /**
438
    /**
439
     * Test that an upgrade script can be found on the file system.
439
     * Test that an upgrade script can be found on the file system.
440
     */
440
     */
441
    public function test_getUpgradeScript() {
441
    public function test_getUpgradeScript(): void {
442
        // Upload an upgrade file.
442
        // Upload an upgrade file.
443
        $machinename = 'TestLib';
443
        $machinename = 'TestLib';
444
        $majorversion = 3;
444
        $majorversion = 3;
445
        $minorversion = 1;
445
        $minorversion = 1;
Línea 470... Línea 470...
470
     * |     |- testfont.min.css
470
     * |     |- testfont.min.css
471
     * |- testJavaScript
471
     * |- testJavaScript
472
     * |     |- testscript.min.js
472
     * |     |- testscript.min.js
473
     * |- h5p.json
473
     * |- h5p.json
474
     */
474
     */
475
    public function test_saveFileFromZip() {
475
    public function test_saveFileFromZip(): void {
Línea 476... Línea 476...
476
 
476
 
477
        $ziparchive = new zip_archive();
477
        $ziparchive = new zip_archive();
478
        $path = __DIR__ . '/fixtures/h5ptest.zip';
478
        $path = __DIR__ . '/fixtures/h5ptest.zip';
Línea 498... Línea 498...
498
    }
498
    }
Línea 499... Línea 499...
499
 
499
 
500
    /**
500
    /**
501
     * Test that a library is fully deleted from the file system
501
     * Test that a library is fully deleted from the file system
502
     */
502
     */
Línea 503... Línea 503...
503
    public function test_delete_library() {
503
    public function test_delete_library(): void {
Línea 504... Línea 504...
504
 
504
 
505
        $basedirectory = $this->h5p_tempath . '/' . 'test-1.0';
505
        $basedirectory = $this->h5p_tempath . '/' . 'test-1.0';