Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 64... Línea 64...
64
    }
64
    }
Línea 65... Línea 65...
65
 
65
 
66
    /**
66
    /**
67
     * Test to ensure that event data is being stored correctly.
67
     * Test to ensure that event data is being stored correctly.
68
     */
68
     */
69
    public function test_answer_created() {
69
    public function test_answer_created(): void {
70
        global $DB;
70
        global $DB;
71
        // Generate user data.
71
        // Generate user data.
72
        $user = $this->getDataGenerator()->create_user();
72
        $user = $this->getDataGenerator()->create_user();
Línea 93... Línea 93...
93
    }
93
    }
Línea 94... Línea 94...
94
 
94
 
95
    /**
95
    /**
96
     * Test to ensure that event data is being stored correctly.
96
     * Test to ensure that event data is being stored correctly.
97
     */
97
     */
98
    public function test_answer_submitted_by_another_user() {
98
    public function test_answer_submitted_by_another_user(): void {
99
        global $DB, $USER;
99
        global $DB, $USER;
100
        // Generate user data.
100
        // Generate user data.
Línea 101... Línea 101...
101
        $user = $this->getDataGenerator()->create_user();
101
        $user = $this->getDataGenerator()->create_user();
Línea 121... Línea 121...
121
    }
121
    }
Línea 122... Línea 122...
122
 
122
 
123
    /**
123
    /**
124
     * Test to ensure that multiple choice data is being stored correctly.
124
     * Test to ensure that multiple choice data is being stored correctly.
125
     */
125
     */
126
    public function test_answer_created_multiple() {
126
    public function test_answer_created_multiple(): void {
Línea 127... Línea 127...
127
        global $DB;
127
        global $DB;
128
 
128
 
129
        // Generate user data.
129
        // Generate user data.
Línea 169... Línea 169...
169
    }
169
    }
Línea 170... Línea 170...
170
 
170
 
171
    /**
171
    /**
172
     * Test custom validations.
172
     * Test custom validations.
173
     */
173
     */
174
    public function test_answer_created_other_exception() {
174
    public function test_answer_created_other_exception(): void {
175
        // Generate user data.
175
        // Generate user data.
Línea 176... Línea 176...
176
        $user = $this->getDataGenerator()->create_user();
176
        $user = $this->getDataGenerator()->create_user();
177
 
177
 
Línea 190... Línea 190...
190
    }
190
    }
Línea 191... Línea 191...
191
 
191
 
192
    /**
192
    /**
193
     * Test to ensure that event data is being stored correctly.
193
     * Test to ensure that event data is being stored correctly.
194
     */
194
     */
195
    public function test_answer_updated() {
195
    public function test_answer_updated(): void {
196
        global $DB;
196
        global $DB;
197
        // Generate user data.
197
        // Generate user data.
198
        $user = $this->getDataGenerator()->create_user();
198
        $user = $this->getDataGenerator()->create_user();
Línea 234... Línea 234...
234
    }
234
    }
Línea 235... Línea 235...
235
 
235
 
236
    /**
236
    /**
237
     * Test to ensure that event data is being stored correctly.
237
     * Test to ensure that event data is being stored correctly.
238
     */
238
     */
239
    public function test_answer_deleted() {
239
    public function test_answer_deleted(): void {
240
        global $DB, $USER;
240
        global $DB, $USER;
241
        // Generate user data.
241
        // Generate user data.
Línea 242... Línea 242...
242
        $user = $this->getDataGenerator()->create_user();
242
        $user = $this->getDataGenerator()->create_user();
Línea 270... Línea 270...
270
    }
270
    }
Línea 271... Línea 271...
271
 
271
 
272
    /**
272
    /**
273
     * Test to ensure that event data is being stored correctly.
273
     * Test to ensure that event data is being stored correctly.
274
     */
274
     */
275
    public function test_report_viewed() {
275
    public function test_report_viewed(): void {
Línea 276... Línea 276...
276
        global $USER;
276
        global $USER;
Línea 277... Línea 277...
277
 
277
 
Línea 303... Línea 303...
303
    }
303
    }
Línea 304... Línea 304...
304
 
304
 
305
    /**
305
    /**
306
     * Test to ensure that event data is being stored correctly.
306
     * Test to ensure that event data is being stored correctly.
307
     */
307
     */
308
    public function test_report_downloaded() {
308
    public function test_report_downloaded(): void {
Línea 309... Línea 309...
309
        global $USER;
309
        global $USER;
Línea 310... Línea 310...
310
 
310
 
Línea 340... Línea 340...
340
    }
340
    }
Línea 341... Línea 341...
341
 
341
 
342
    /**
342
    /**
343
     * Test to ensure that event data is being stored correctly.
343
     * Test to ensure that event data is being stored correctly.
344
     */
344
     */
345
    public function test_course_module_viewed() {
345
    public function test_course_module_viewed(): void {
Línea 346... Línea 346...
346
        global $USER;
346
        global $USER;
347
 
347
 
Línea 371... Línea 371...
371
    }
371
    }
Línea 372... Línea 372...
372
 
372
 
373
    /**
373
    /**
374
     * Test to ensure that event data is being stored correctly.
374
     * Test to ensure that event data is being stored correctly.
375
     */
375
     */
376
    public function test_course_module_instance_list_viewed_viewed() {
376
    public function test_course_module_instance_list_viewed_viewed(): void {
Línea 377... Línea 377...
377
        global $USER;
377
        global $USER;
378
 
378
 
379
        // Not much can be tested here as the event is only triggered on a page load,
379
        // Not much can be tested here as the event is only triggered on a page load,