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
     *
53
     *
54
     * @param int $status
54
     * @param int $status
55
     * @dataProvider get_status_provider
55
     * @dataProvider get_status_provider
56
     * @covers ::get
56
     * @covers ::get
57
     */
57
     */
58
    public function test_get_allrecordings_status_refresh(int $status) {
58
    public function test_get_allrecordings_status_refresh(int $status): void {
59
        $this->resetAfterTest();
59
        $this->resetAfterTest();
60
        ['recordings' => $recordings] = $this->create_activity_with_recordings(
60
        ['recordings' => $recordings] = $this->create_activity_with_recordings(
61
            $this->get_course(),
61
            $this->get_course(),
62
            instance::TYPE_ALL,
62
            instance::TYPE_ALL,
63
            [['status' => $status]]
63
            [['status' => $status]]
Línea 155... Línea 155...
155
     * Test for bigbluebuttonbn_get_allrecordings().
155
     * Test for bigbluebuttonbn_get_allrecordings().
156
     *
156
     *
157
     * @param int $type
157
     * @param int $type
158
     * @dataProvider get_allrecordings_types_provider
158
     * @dataProvider get_allrecordings_types_provider
159
     */
159
     */
160
    public function test_get_recording_for_group($type) {
160
    public function test_get_recording_for_group($type): void {
161
        $this->resetAfterTest();
161
        $this->resetAfterTest();
Línea 162... Línea 162...
162
 
162
 
Línea 163... Línea 163...
163
        $plugingenerator = $this->getDataGenerator()->get_plugin_generator('mod_bigbluebuttonbn');
163
        $plugingenerator = $this->getDataGenerator()->get_plugin_generator('mod_bigbluebuttonbn');
Línea 216... Línea 216...
216
     * Test that we can get recordings from a deleted activity
216
     * Test that we can get recordings from a deleted activity
217
     *
217
     *
218
     * @param int $type
218
     * @param int $type
219
     * @dataProvider get_allrecordings_types_provider
219
     * @dataProvider get_allrecordings_types_provider
220
     */
220
     */
221
    public function test_get_recordings_from_deleted_activity($type) {
221
    public function test_get_recordings_from_deleted_activity($type): void {
222
        $this->resetAfterTest(true);
222
        $this->resetAfterTest(true);
223
        $this->initialise_mock_server();
223
        $this->initialise_mock_server();
224
        $plugingenerator = $this->getDataGenerator()->get_plugin_generator('mod_bigbluebuttonbn');
224
        $plugingenerator = $this->getDataGenerator()->get_plugin_generator('mod_bigbluebuttonbn');
Línea 225... Línea 225...
225
 
225
 
Línea 265... Línea 265...
265
    /**
265
    /**
266
     * Simple recording with breakoutroom fetcher test
266
     * Simple recording with breakoutroom fetcher test
267
     *
267
     *
268
     * @return void
268
     * @return void
269
     */
269
     */
270
    public function test_recordings_breakoutroom() {
270
    public function test_recordings_breakoutroom(): void {
271
        $this->resetAfterTest();
271
        $this->resetAfterTest();
272
        $this->initialise_mock_server();
272
        $this->initialise_mock_server();
273
        [$context, $cm, $bbbactivity] = $this->create_instance();
273
        [$context, $cm, $bbbactivity] = $this->create_instance();
274
        $instance = instance::get_from_instanceid($bbbactivity->id);
274
        $instance = instance::get_from_instanceid($bbbactivity->id);
275
        $bbbgenerator = $this->getDataGenerator()->get_plugin_generator('mod_bigbluebuttonbn');
275
        $bbbgenerator = $this->getDataGenerator()->get_plugin_generator('mod_bigbluebuttonbn');