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
    }
Línea 42... Línea 42...
42
 
42
 
43
    /**
43
    /**
44
     * Test method get_supported_extensions
44
     * Test method get_supported_extensions
45
     */
45
     */
46
    public function test_get_supported_extensions() {
46
    public function test_get_supported_extensions(): void {
47
        global $CFG;
47
        global $CFG;
48
        require_once($CFG->libdir . '/filelib.php');
48
        require_once($CFG->libdir . '/filelib.php');
Línea 49... Línea 49...
49
        $nativeextensions = file_get_typegroup('extension', ['html_video', 'html_audio']);
49
        $nativeextensions = file_get_typegroup('extension', ['html_video', 'html_audio']);
Línea 56... Línea 56...
56
    }
56
    }
Línea 57... Línea 57...
57
 
57
 
58
    /**
58
    /**
59
     * Test method list_supported_urls
59
     * Test method list_supported_urls
60
     */
60
     */
61
    public function test_list_supported_urls() {
61
    public function test_list_supported_urls(): void {
62
        global $CFG;
62
        global $CFG;
63
        require_once($CFG->libdir . '/filelib.php');
63
        require_once($CFG->libdir . '/filelib.php');
Línea 64... Línea 64...
64
        $nativeextensions = file_get_typegroup('extension', ['html_video', 'html_audio']);
64
        $nativeextensions = file_get_typegroup('extension', ['html_video', 'html_audio']);
Línea 74... Línea 74...
74
    }
74
    }
Línea 75... Línea 75...
75
 
75
 
76
    /**
76
    /**
77
     * Test method get_attribute
77
     * Test method get_attribute
78
     */
78
     */
79
    public function test_get_attribute() {
79
    public function test_get_attribute(): void {
80
        $urls = [
80
        $urls = [
81
            new \moodle_url('http://example.org/some_filename.mp4'),
81
            new \moodle_url('http://example.org/some_filename.mp4'),
82
            new \moodle_url('http://example.org/some_filename_hires.mp4'),
82
            new \moodle_url('http://example.org/some_filename_hires.mp4'),
Línea 92... Línea 92...
92
    }
92
    }
Línea 93... Línea 93...
93
 
93
 
94
    /**
94
    /**
95
     * Test methods add_attributes and remove_attributes
95
     * Test methods add_attributes and remove_attributes
96
     */
96
     */
97
    public function test_add_remove_attributes() {
97
    public function test_add_remove_attributes(): void {
98
        $urls = [
98
        $urls = [
99
            new \moodle_url('http://example.org/some_filename.mp4'),
99
            new \moodle_url('http://example.org/some_filename.mp4'),
100
            new \moodle_url('http://example.org/some_filename_hires.mp4'),
100
            new \moodle_url('http://example.org/some_filename_hires.mp4'),
Línea 131... Línea 131...
131
    }
131
    }
Línea 132... Línea 132...
132
 
132
 
133
    /**
133
    /**
134
     * Test method replace_sources
134
     * Test method replace_sources
135
     */
135
     */
136
    public function test_replace_sources() {
136
    public function test_replace_sources(): void {
137
        $urls = [
137
        $urls = [
138
            new \moodle_url('http://example.org/some_filename.mp4'),
138
            new \moodle_url('http://example.org/some_filename.mp4'),
139
            new \moodle_url('http://example.org/some_filename_hires.mp4'),
139
            new \moodle_url('http://example.org/some_filename_hires.mp4'),