Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 53... Línea 53...
53
    const PRESENTATION_FILEPATH = '/mod/bigbluebuttonbn/tests/fixtures/bbpresentation.pptx';
53
    const PRESENTATION_FILEPATH = '/mod/bigbluebuttonbn/tests/fixtures/bbpresentation.pptx';
Línea 54... Línea 54...
54
 
54
 
55
    /**
55
    /**
56
     * Plugin valid test case
56
     * Plugin valid test case
57
     */
57
     */
58
    public function test_pluginfile_valid() {
58
    public function test_pluginfile_valid(): void {
59
        $this->resetAfterTest();
59
        $this->resetAfterTest();
60
        $this->assertFalse(files::pluginfile_valid(context_course::instance($this->get_course()->id), 'presentation'));
60
        $this->assertFalse(files::pluginfile_valid(context_course::instance($this->get_course()->id), 'presentation'));
61
        $this->assertTrue(files::pluginfile_valid(context_system::instance(), 'presentation'));
61
        $this->assertTrue(files::pluginfile_valid(context_system::instance(), 'presentation'));
62
        $this->assertFalse(files::pluginfile_valid(context_system::instance(), 'otherfilearea'));
62
        $this->assertFalse(files::pluginfile_valid(context_system::instance(), 'otherfilearea'));
Línea 63... Línea 63...
63
    }
63
    }
64
 
64
 
65
    /**
65
    /**
66
     * Plugin file test case
66
     * Plugin file test case
67
     */
67
     */
68
    public function test_pluginfile_file() {
68
    public function test_pluginfile_file(): void {
Línea 69... Línea 69...
69
        global $CFG;
69
        global $CFG;
70
        $this->resetAfterTest();
70
        $this->resetAfterTest();
Línea 82... Línea 82...
82
    }
82
    }
Línea 83... Línea 83...
83
 
83
 
84
    /**
84
    /**
85
     * Get presentation file
85
     * Get presentation file
86
     */
86
     */
87
    public function test_default_presentation_get_file() {
87
    public function test_default_presentation_get_file(): void {
Línea 88... Línea 88...
88
        $this->resetAfterTest();
88
        $this->resetAfterTest();
89
 
89
 
Línea 99... Línea 99...
99
    }
99
    }
Línea 100... Línea 100...
100
 
100
 
101
    /**
101
    /**
102
     * Test that file is accessible only once.
102
     * Test that file is accessible only once.
103
     */
103
     */
104
    public function test_presentation_file_accessible_twice() {
104
    public function test_presentation_file_accessible_twice(): void {
105
        global $CFG;
105
        global $CFG;
Línea 106... Línea 106...
106
        $this->resetAfterTest();
106
        $this->resetAfterTest();
107
 
107
 
Línea 128... Línea 128...
128
    }
128
    }
Línea 129... Línea 129...
129
 
129
 
130
    /**
130
    /**
131
     * Test that file is accessible only once.
131
     * Test that file is accessible only once.
132
     */
132
     */
133
    public function test_presentation_file_not_accessible_externally() {
133
    public function test_presentation_file_not_accessible_externally(): void {
134
        global $CFG;
134
        global $CFG;
Línea 135... Línea 135...
135
        $this->resetAfterTest();
135
        $this->resetAfterTest();
136
 
136
 
Línea 153... Línea 153...
153
    }
153
    }
Línea 154... Línea 154...
154
 
154
 
155
    /**
155
    /**
156
     * Get filename test
156
     * Get filename test
157
     */
157
     */
158
    public function test_pluginfile_filename() {
158
    public function test_pluginfile_filename(): void {
159
        global $CFG;
159
        global $CFG;
Línea 160... Línea 160...
160
        $this->resetAfterTest();
160
        $this->resetAfterTest();
161
 
161
 
Línea 173... Línea 173...
173
    }
173
    }
Línea 174... Línea 174...
174
 
174
 
175
    /**
175
    /**
176
     * Get media files
176
     * Get media files
177
     */
177
     */
178
    public function test_get_media_file() {
178
    public function test_get_media_file(): void {
Línea 179... Línea 179...
179
        $this->resetAfterTest();
179
        $this->resetAfterTest();
180
 
180