Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 62... Línea 62...
62
    }
62
    }
Línea 63... Línea 63...
63
 
63
 
64
    /**
64
    /**
65
     * Test execute API CALL with no instance
65
     * Test execute API CALL with no instance
66
     */
66
     */
67
    public function test_execute_no_instance() {
67
    public function test_execute_no_instance(): void {
68
        $this->resetAfterTest();
68
        $this->resetAfterTest();
69
        $this->expectExceptionMessageMatches('/No such instance.*/');
69
        $this->expectExceptionMessageMatches('/No such instance.*/');
Línea 70... Línea 70...
70
        $joinurl = $this->get_join_url(1234, 5678);
70
        $joinurl = $this->get_join_url(1234, 5678);
Línea 75... Línea 75...
75
    }
75
    }
Línea 76... Línea 76...
76
 
76
 
77
    /**
77
    /**
78
     * Test execute API CALL without login
78
     * Test execute API CALL without login
79
     */
79
     */
80
    public function test_execute_without_login() {
80
    public function test_execute_without_login(): void {
Línea 81... Línea 81...
81
        $this->resetAfterTest();
81
        $this->resetAfterTest();
82
 
82
 
83
        $course = $this->getDataGenerator()->create_course();
83
        $course = $this->getDataGenerator()->create_course();
Línea 111... Línea 111...
111
    }
111
    }
Línea 112... Línea 112...
112
 
112
 
113
    /**
113
    /**
114
     * Test execute API CALL with invalid login
114
     * Test execute API CALL with invalid login
115
     */
115
     */
116
    public function test_execute_with_invalid_login() {
116
    public function test_execute_with_invalid_login(): void {
Línea 117... Línea 117...
117
        $this->resetAfterTest();
117
        $this->resetAfterTest();
118
 
118
 
119
        $generator = $this->getDataGenerator();
119
        $generator = $this->getDataGenerator();
Línea 129... Línea 129...
129
    }
129
    }
Línea 130... Línea 130...
130
 
130
 
131
    /**
131
    /**
132
     * When login as a student
132
     * When login as a student
133
     */
133
     */
134
    public function test_execute_with_valid_login() {
134
    public function test_execute_with_valid_login(): void {
Línea 135... Línea 135...
135
        $this->resetAfterTest();
135
        $this->resetAfterTest();
136
 
136
 
137
        $generator = $this->getDataGenerator();
137
        $generator = $this->getDataGenerator();
Línea 158... Línea 158...
158
    }
158
    }
Línea 159... Línea 159...
159
 
159
 
160
    /**
160
    /**
161
     * Check that URL are different depending on the group.
161
     * Check that URL are different depending on the group.
162
     */
162
     */
163
    public function test_execute_with_group() {
163
    public function test_execute_with_group(): void {
Línea 164... Línea 164...
164
        $this->resetAfterTest();
164
        $this->resetAfterTest();
165
 
165
 
166
        $generator = $this->getDataGenerator();
166
        $generator = $this->getDataGenerator();
Línea 196... Línea 196...
196
    }
196
    }
Línea 197... Línea 197...
197
 
197
 
198
    /**
198
    /**
199
     * Check that we return the same URL once meeting is started.
199
     * Check that we return the same URL once meeting is started.
200
     */
200
     */
201
    public function test_execute_with_same_url() {
201
    public function test_execute_with_same_url(): void {
Línea 202... Línea 202...
202
        $this->resetAfterTest();
202
        $this->resetAfterTest();
203
 
203
 
204
        $generator = $this->getDataGenerator();
204
        $generator = $this->getDataGenerator();
Línea 230... Línea 230...
230
    }
230
    }
Línea 231... Línea 231...
231
 
231
 
232
    /**
232
    /**
233
     * Check that we return the same URL once meeting is started.
233
     * Check that we return the same URL once meeting is started.
234
     */
234
     */
235
    public function test_user_limit() {
235
    public function test_user_limit(): void {
236
        $this->resetAfterTest();
236
        $this->resetAfterTest();
237
        set_config('bigbluebuttonbn_userlimit_editable', true);
237
        set_config('bigbluebuttonbn_userlimit_editable', true);
238
        $generator = $this->getDataGenerator();
238
        $generator = $this->getDataGenerator();
239
        $course = $generator->create_course();
239
        $course = $generator->create_course();