Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 60... Línea 60...
60
    }
60
    }
Línea 61... Línea 61...
61
 
61
 
62
    /**
62
    /**
63
     * Test execute API CALL with no instance
63
     * Test execute API CALL with no instance
64
     */
64
     */
65
    public function test_execute_no_instance() {
65
    public function test_execute_no_instance(): void {
66
        $this->resetAfterTest();
66
        $this->resetAfterTest();
67
        $this->expectException(moodle_exception::class);
67
        $this->expectException(moodle_exception::class);
68
        $endmeeting = $this->end_meeting(1234, 5678);
68
        $endmeeting = $this->end_meeting(1234, 5678);
Línea 69... Línea 69...
69
    }
69
    }
70
 
70
 
71
    /**
71
    /**
72
     * Test execute API CALL without login
72
     * Test execute API CALL without login
73
     */
73
     */
Línea 74... Línea 74...
74
    public function test_execute_without_login() {
74
    public function test_execute_without_login(): void {
75
        $this->resetAfterTest();
75
        $this->resetAfterTest();
76
 
76
 
Línea 83... Línea 83...
83
    }
83
    }
Línea 84... Línea 84...
84
 
84
 
85
    /**
85
    /**
86
     * Test execute API CALL with invalid login
86
     * Test execute API CALL with invalid login
87
     */
87
     */
88
    public function test_execute_with_invalid_login() {
88
    public function test_execute_with_invalid_login(): void {
Línea 89... Línea 89...
89
        $this->resetAfterTest();
89
        $this->resetAfterTest();
90
 
90
 
91
        $generator = $this->getDataGenerator();
91
        $generator = $this->getDataGenerator();
Línea 101... Línea 101...
101
    }
101
    }
Línea 102... Línea 102...
102
 
102
 
103
    /**
103
    /**
104
     * When login as a student
104
     * When login as a student
105
     */
105
     */
106
    public function test_execute_with_student_login() {
106
    public function test_execute_with_student_login(): void {
Línea 107... Línea 107...
107
        $this->resetAfterTest();
107
        $this->resetAfterTest();
108
 
108
 
109
        $generator = $this->getDataGenerator();
109
        $generator = $this->getDataGenerator();
Línea 119... Línea 119...
119
    }
119
    }
Línea 120... Línea 120...
120
 
120
 
121
    /**
121
    /**
122
     * Test execute admin logic
122
     * Test execute admin logic
123
     */
123
     */
124
    public function test_execute_with_admin_login() {
124
    public function test_execute_with_admin_login(): void {
Línea 125... Línea 125...
125
        $this->resetAfterTest();
125
        $this->resetAfterTest();
126
 
126
 
127
        $generator = $this->getDataGenerator();
127
        $generator = $this->getDataGenerator();
Línea 142... Línea 142...
142
        // TODO Check that the meeting was ended on the remote.
142
        // TODO Check that the meeting was ended on the remote.
143
    }
143
    }
144
    /**
144
    /**
145
     * Test execute admin logic
145
     * Test execute admin logic
146
     */
146
     */
147
    public function test_execute_end_meeting_already_ended() {
147
    public function test_execute_end_meeting_already_ended(): void {
148
        $this->resetAfterTest();
148
        $this->resetAfterTest();
Línea 149... Línea 149...
149
 
149
 
150
        $generator = $this->getDataGenerator();
150
        $generator = $this->getDataGenerator();
151
        $course = $generator->create_course();
151
        $course = $generator->create_course();