Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 90... Línea 90...
90
     * Test the add module callback
90
     * Test the add module callback
91
     *
91
     *
92
     * @return void
92
     * @return void
93
     * @covers \mod_bigbluebuttonbn\local\extension\mod_instance_helper
93
     * @covers \mod_bigbluebuttonbn\local\extension\mod_instance_helper
94
     */
94
     */
95
    public function test_mod_instance_helper_add() {
95
    public function test_mod_instance_helper_add(): void {
96
        global $DB;
96
        global $DB;
97
        // Enable plugin.
97
        // Enable plugin.
98
        $this->enable_plugins(true);
98
        $this->enable_plugins(true);
Línea 99... Línea 99...
99
 
99
 
Línea 109... Línea 109...
109
     * Test the update module callback
109
     * Test the update module callback
110
     *
110
     *
111
     * @return void
111
     * @return void
112
     * @covers \mod_bigbluebuttonbn\local\extension\mod_instance_helper
112
     * @covers \mod_bigbluebuttonbn\local\extension\mod_instance_helper
113
     */
113
     */
114
    public function test_mod_instance_helper_update() {
114
    public function test_mod_instance_helper_update(): void {
115
        global $DB;
115
        global $DB;
116
        $this->setAdminUser();
116
        $this->setAdminUser();
117
        // Enable plugin.
117
        // Enable plugin.
118
        $this->enable_plugins(true);
118
        $this->enable_plugins(true);
Línea 130... Línea 130...
130
     * Test delete module callback
130
     * Test delete module callback
131
     *
131
     *
132
     * @return void
132
     * @return void
133
     * @covers \mod_bigbluebuttonbn\local\extension\mod_instance_helper
133
     * @covers \mod_bigbluebuttonbn\local\extension\mod_instance_helper
134
     */
134
     */
135
    public function test_mod_instance_helper_delete() {
135
    public function test_mod_instance_helper_delete(): void {
136
        global $DB;
136
        global $DB;
137
        $this->initialise_mock_server();
137
        $this->initialise_mock_server();
138
        // Enable plugin.
138
        // Enable plugin.
139
        $this->enable_plugins(true);
139
        $this->enable_plugins(true);
Línea 149... Línea 149...
149
     * Test the action_url_addons with plugin enabled
149
     * Test the action_url_addons with plugin enabled
150
     *
150
     *
151
     * @return void
151
     * @return void
152
     * @covers \mod_bigbluebuttonbn\extension::action_url_addons
152
     * @covers \mod_bigbluebuttonbn\extension::action_url_addons
153
     */
153
     */
154
    public function test_action_url_addons() {
154
    public function test_action_url_addons(): void {
155
        // Enable plugin.
155
        // Enable plugin.
156
        $this->enable_plugins(true);
156
        $this->enable_plugins(true);
157
        $course = $this->get_course();
157
        $course = $this->get_course();
158
        [$cm, $cminfo, $bbactivity] = $this->create_instance($course);
158
        [$cm, $cminfo, $bbactivity] = $this->create_instance($course);
159
        $bbactivity->newfield = 4;
159
        $bbactivity->newfield = 4;
Línea 172... Línea 172...
172
     * Test the action_url_addons with plugin enabled
172
     * Test the action_url_addons with plugin enabled
173
     *
173
     *
174
     * @return void
174
     * @return void
175
     * @covers \mod_bigbluebuttonbn\extension::action_url_addons
175
     * @covers \mod_bigbluebuttonbn\extension::action_url_addons
176
     */
176
     */
177
    public function test_join_url_with_additional_field() {
177
    public function test_join_url_with_additional_field(): void {
178
        $this->initialise_mock_server();
178
        $this->initialise_mock_server();
179
        // Enable plugin.
179
        // Enable plugin.
180
        $this->enable_plugins(true);
180
        $this->enable_plugins(true);
181
        $course = $this->get_course();
181
        $course = $this->get_course();
182
        [$cm, $cminfo, $bbactivity] = $this->create_instance($course);
182
        [$cm, $cminfo, $bbactivity] = $this->create_instance($course);