Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 46... Línea 46...
46
    }
46
    }
Línea 47... Línea 47...
47
 
47
 
48
    /**
48
    /**
49
     * Check the exporting of comments for a user id in a context.
49
     * Check the exporting of comments for a user id in a context.
50
     */
50
     */
51
    public function test_export_comments() {
51
    public function test_export_comments(): void {
52
        $course = $this->getDataGenerator()->create_course();
52
        $course = $this->getDataGenerator()->create_course();
Línea 53... Línea 53...
53
        $context = \context_course::instance($course->id);
53
        $context = \context_course::instance($course->id);
Línea 96... Línea 96...
96
    }
96
    }
Línea 97... Línea 97...
97
 
97
 
98
    /**
98
    /**
99
     * Tests the deletion of all comments in a context.
99
     * Tests the deletion of all comments in a context.
100
     */
100
     */
101
    public function test_delete_comments_for_all_users() {
101
    public function test_delete_comments_for_all_users(): void {
Línea 102... Línea 102...
102
        global $DB;
102
        global $DB;
103
 
103
 
Línea 164... Línea 164...
164
    }
164
    }
Línea 165... Línea 165...
165
 
165
 
166
    /**
166
    /**
167
     * Tests the deletion of all comments in a context.
167
     * Tests the deletion of all comments in a context.
168
     */
168
     */
169
    public function test_delete_comments_for_all_users_select() {
169
    public function test_delete_comments_for_all_users_select(): void {
Línea 170... Línea 170...
170
        global $DB;
170
        global $DB;
171
 
171
 
Línea 234... Línea 234...
234
    }
234
    }
Línea 235... Línea 235...
235
 
235
 
236
    /**
236
    /**
237
     * Tests deletion of comments for a specified user and contexts.
237
     * Tests deletion of comments for a specified user and contexts.
238
     */
238
     */
239
    public function test_delete_comments_for_user() {
239
    public function test_delete_comments_for_user(): void {
Línea 240... Línea 240...
240
        global $DB;
240
        global $DB;
241
 
241
 
242
        $course1 = $this->getDataGenerator()->create_course();
242
        $course1 = $this->getDataGenerator()->create_course();
Línea 317... Línea 317...
317
    }
317
    }
Línea 318... Línea 318...
318
 
318
 
319
    /**
319
    /**
320
     * Tests deletion of comments for a specified userlist and context.
320
     * Tests deletion of comments for a specified userlist and context.
321
     */
321
     */
322
    public function test_delete_comments_for_users() {
322
    public function test_delete_comments_for_users(): void {
Línea 323... Línea 323...
323
        global $DB;
323
        global $DB;
324
 
324
 
325
        $course1 = $this->getDataGenerator()->create_course();
325
        $course1 = $this->getDataGenerator()->create_course();