Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 48... Línea 48...
48
    use mod_assign_test_generator;
48
    use mod_assign_test_generator;
Línea 49... Línea 49...
49
 
49
 
50
    /**
50
    /**
51
     * Test comment_created event.
51
     * Test comment_created event.
52
     */
52
     */
53
    public function test_comment_created() {
53
    public function test_comment_created(): void {
54
        $this->resetAfterTest();
54
        $this->resetAfterTest();
55
        $course = $this->getDataGenerator()->create_course();
55
        $course = $this->getDataGenerator()->create_course();
56
        $teacher = $this->getDataGenerator()->create_and_enrol($course, 'teacher');
56
        $teacher = $this->getDataGenerator()->create_and_enrol($course, 'teacher');
Línea 90... Línea 90...
90
    }
90
    }
Línea 91... Línea 91...
91
 
91
 
92
    /**
92
    /**
93
     * Test comment_deleted event.
93
     * Test comment_deleted event.
94
     */
94
     */
95
    public function test_comment_deleted() {
95
    public function test_comment_deleted(): void {
96
        $this->resetAfterTest();
96
        $this->resetAfterTest();
97
        $course = $this->getDataGenerator()->create_course();
97
        $course = $this->getDataGenerator()->create_course();
98
        $teacher = $this->getDataGenerator()->create_and_enrol($course, 'teacher');
98
        $teacher = $this->getDataGenerator()->create_and_enrol($course, 'teacher');