Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 102... Línea 102...
102
    }
102
    }
Línea 103... Línea 103...
103
 
103
 
104
    /**
104
    /**
105
     * Tests for event response_deleted.
105
     * Tests for event response_deleted.
106
     */
106
     */
107
    public function test_response_deleted_event() {
107
    public function test_response_deleted_event(): void {
108
        global $USER, $DB;
108
        global $USER, $DB;
Línea 109... Línea 109...
109
        $this->resetAfterTest();
109
        $this->resetAfterTest();
110
 
110
 
Línea 166... Línea 166...
166
    }
166
    }
Línea 167... Línea 167...
167
 
167
 
168
    /**
168
    /**
169
     * Tests for event validations related to feedback response deletion.
169
     * Tests for event validations related to feedback response deletion.
170
     */
170
     */
Línea 171... Línea 171...
171
    public function test_response_deleted_event_exceptions() {
171
    public function test_response_deleted_event_exceptions(): void {
Línea 172... Línea 172...
172
 
172
 
Línea 189... Línea 189...
189
    }
189
    }
Línea 190... Línea 190...
190
 
190
 
191
    /**
191
    /**
192
     * Tests for event response_submitted.
192
     * Tests for event response_submitted.
193
     */
193
     */
194
    public function test_response_submitted_event() {
194
    public function test_response_submitted_event(): void {
195
        global $USER, $DB;
195
        global $USER, $DB;
196
        $this->resetAfterTest();
196
        $this->resetAfterTest();
Línea 197... Línea 197...
197
        $this->setUser($this->eventuser);
197
        $this->setUser($this->eventuser);
Línea 263... Línea 263...
263
    }
263
    }
Línea 264... Línea 264...
264
 
264
 
265
    /**
265
    /**
266
     * Tests for event validations related to feedback response submission.
266
     * Tests for event validations related to feedback response submission.
267
     */
267
     */
Línea 268... Línea 268...
268
    public function test_response_submitted_event_exceptions() {
268
    public function test_response_submitted_event_exceptions(): void {
Línea 269... Línea 269...
269
 
269
 
Línea 317... Línea 317...
317
    }
317
    }
Línea 318... Línea 318...
318
 
318
 
319
    /**
319
    /**
320
     * Test that event observer is executed on course deletion and the templates are removed.
320
     * Test that event observer is executed on course deletion and the templates are removed.
321
     */
321
     */
322
    public function test_delete_course() {
322
    public function test_delete_course(): void {
323
        global $DB;
323
        global $DB;
324
        $this->resetAfterTest();
324
        $this->resetAfterTest();
325
        feedback_save_as_template($this->eventfeedback, 'my template', 0);
325
        feedback_save_as_template($this->eventfeedback, 'my template', 0);
326
        $courseid = $this->eventcourse->id;
326
        $courseid = $this->eventcourse->id;