Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 29... Línea 29...
29
class message_test extends \advanced_testcase {
29
class message_test extends \advanced_testcase {
Línea 30... Línea 30...
30
 
30
 
31
    /**
31
    /**
32
     * Test the method get_eventobject_for_processor().
32
     * Test the method get_eventobject_for_processor().
33
     */
33
     */
34
    public function test_get_eventobject_for_processor() {
34
    public function test_get_eventobject_for_processor(): void {
35
        global $USER;
35
        global $USER;
36
        $this->resetAfterTest();
36
        $this->resetAfterTest();
Línea 37... Línea 37...
37
        $this->setAdminUser();
37
        $this->setAdminUser();
Línea 119... Línea 119...
119
    }
119
    }
Línea 120... Línea 120...
120
 
120
 
121
    /**
121
    /**
122
     * Test sending messages as email works with the new class.
122
     * Test sending messages as email works with the new class.
123
     */
123
     */
124
    public function test_send_message() {
124
    public function test_send_message(): void {
125
        global $DB, $CFG;
125
        global $DB, $CFG;
126
        $this->preventResetByRollback();
126
        $this->preventResetByRollback();
Línea 127... Línea 127...
127
        $this->resetAfterTest();
127
        $this->resetAfterTest();
Línea 215... Línea 215...
215
        $this->assertEquals($message->courseid, $event->other['courseid']);
215
        $this->assertEquals($message->courseid, $event->other['courseid']);
216
        $eventsink->close();
216
        $eventsink->close();
217
        $sink->close();
217
        $sink->close();
218
    }
218
    }
Línea 219... Línea 219...
219
 
219
 
220
    public function test_send_message_with_prefix() {
220
    public function test_send_message_with_prefix(): void {
221
        global $DB, $CFG;
221
        global $DB, $CFG;
222
        $this->preventResetByRollback();
222
        $this->preventResetByRollback();
Línea 223... Línea 223...
223
        $this->resetAfterTest();
223
        $this->resetAfterTest();