Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 72... Línea 72...
72
    }
72
    }
Línea 73... Línea 73...
73
 
73
 
74
    /**
74
    /**
75
     * This event is triggered in view.php and workshop/lib.php through the function workshop_cron().
75
     * This event is triggered in view.php and workshop/lib.php through the function workshop_cron().
76
     */
76
     */
77
    public function test_phase_switched_event() {
77
    public function test_phase_switched_event(): void {
78
        $this->resetAfterTest();
78
        $this->resetAfterTest();
Línea 79... Línea 79...
79
        $this->setAdminUser();
79
        $this->setAdminUser();
80
 
80
 
Línea 97... Línea 97...
97
        $this->assertEventContextNotUsed($event);
97
        $this->assertEventContextNotUsed($event);
Línea 98... Línea 98...
98
 
98
 
99
        $sink->close();
99
        $sink->close();
Línea 100... Línea 100...
100
    }
100
    }
101
 
101
 
102
    public function test_assessment_evaluated() {
102
    public function test_assessment_evaluated(): void {
Línea 103... Línea 103...
103
        $this->resetAfterTest();
103
        $this->resetAfterTest();
Línea 123... Línea 123...
123
        $this->assertEventContextNotUsed($event);
123
        $this->assertEventContextNotUsed($event);
Línea 124... Línea 124...
124
 
124
 
125
        $sink->close();
125
        $sink->close();
Línea 126... Línea 126...
126
    }
126
    }
127
 
127
 
128
    public function test_assessment_reevaluated() {
128
    public function test_assessment_reevaluated(): void {
Línea 129... Línea 129...
129
        $this->resetAfterTest();
129
        $this->resetAfterTest();
Línea 152... Línea 152...
152
    }
152
    }
Línea 153... Línea 153...
153
 
153
 
154
    /**
154
    /**
155
     * There is no api involved so the best we can do is test legacy data by triggering event manually.
155
     * There is no api involved so the best we can do is test legacy data by triggering event manually.
156
     */
156
     */
157
    public function test_aggregate_grades_reset_event() {
157
    public function test_aggregate_grades_reset_event(): void {
158
        $this->resetAfterTest();
158
        $this->resetAfterTest();
Línea 159... Línea 159...
159
        $this->setAdminUser();
159
        $this->setAdminUser();
160
 
160
 
Línea 174... Línea 174...
174
    }
174
    }
Línea 175... Línea 175...
175
 
175
 
176
    /**
176
    /**
177
     * There is no api involved so the best we can do is test legacy data by triggering event manually.
177
     * There is no api involved so the best we can do is test legacy data by triggering event manually.
178
     */
178
     */
179
    public function test_instances_list_viewed_event() {
179
    public function test_instances_list_viewed_event(): void {
180
        $this->resetAfterTest();
180
        $this->resetAfterTest();
Línea 181... Línea 181...
181
        $this->setAdminUser();
181
        $this->setAdminUser();
Línea 196... Línea 196...
196
    }
196
    }
Línea 197... Línea 197...
197
 
197
 
198
    /**
198
    /**
199
     * There is no api involved so the best we can do is test legacy data by triggering event manually.
199
     * There is no api involved so the best we can do is test legacy data by triggering event manually.
200
     */
200
     */
201
    public function test_submission_created_event() {
201
    public function test_submission_created_event(): void {
202
        $this->resetAfterTest();
202
        $this->resetAfterTest();
Línea 203... Línea 203...
203
        $this->setAdminUser();
203
        $this->setAdminUser();
204
 
204