Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 26... Línea 26...
26
 *
26
 *
27
 * @package core
27
 * @package core
28
 * @copyright 2013 The Open University
28
 * @copyright 2013 The Open University
29
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 */
30
 */
31
class mbz_packer_test extends \advanced_testcase {
31
final class mbz_packer_test extends \advanced_testcase {
Línea 32... Línea 32...
32
 
32
 
33
    public function test_archive_with_both_options(): void {
33
    public function test_archive_with_both_options(): void {
34
        global $CFG;
34
        global $CFG;
Línea 87... Línea 87...
87
        $out = $fs->get_file($context->id, 'phpunit', 'data', 2, '/', '1.txt');
87
        $out = $fs->get_file($context->id, 'phpunit', 'data', 2, '/', '1.txt');
88
        $this->assertNotEmpty($out);
88
        $this->assertNotEmpty($out);
89
        $this->assertEquals('frog', $out->get_content());
89
        $this->assertEquals('frog', $out->get_content());
90
    }
90
    }
Línea 91... Línea 91...
91
 
91
 
92
    public function usezipbackups_provider() {
92
    public static function usezipbackups_provider(): array {
93
        return [
93
        return [
94
            'Use zips'  => [true],
94
            'Use zips'  => [true],
95
            'Use tgz'   => [false],
95
            'Use tgz'   => [false],
96
        ];
96
        ];