Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 99... Línea 99...
99
    }
99
    }
Línea 100... Línea 100...
100
 
100
 
101
    /**
101
    /**
102
     * Quick test to make sure that get_metadata returns something.
102
     * Quick test to make sure that get_metadata returns something.
103
     */
103
     */
104
    public function test_get_metadata() {
104
    public function test_get_metadata(): void {
105
        $collection = new \core_privacy\local\metadata\collection('assignfeedback_comments');
105
        $collection = new \core_privacy\local\metadata\collection('assignfeedback_comments');
106
        $collection = \assignfeedback_comments\privacy\provider::get_metadata($collection);
106
        $collection = \assignfeedback_comments\privacy\provider::get_metadata($collection);
107
        $this->assertNotEmpty($collection);
107
        $this->assertNotEmpty($collection);
Línea 108... Línea 108...
108
    }
108
    }
109
 
109
 
110
    /**
110
    /**
111
     * Test that feedback comments are exported for a user.
111
     * Test that feedback comments are exported for a user.
112
     */
112
     */
Línea 113... Línea 113...
113
    public function test_export_feedback_user_data() {
113
    public function test_export_feedback_user_data(): void {
114
        $this->resetAfterTest();
114
        $this->resetAfterTest();
115
 
115
 
Línea 155... Línea 155...
155
    }
155
    }
Línea 156... Línea 156...
156
 
156
 
157
    /**
157
    /**
158
     * Test that all feedback is deleted for a context.
158
     * Test that all feedback is deleted for a context.
159
     */
159
     */
160
    public function test_delete_feedback_for_context() {
160
    public function test_delete_feedback_for_context(): void {
161
        $this->resetAfterTest();
161
        $this->resetAfterTest();
162
        // Create course, assignment, submission, and then a feedback comment.
162
        // Create course, assignment, submission, and then a feedback comment.
163
        $course = $this->getDataGenerator()->create_course();
163
        $course = $this->getDataGenerator()->create_course();
164
        // Student.
164
        // Student.
Línea 208... Línea 208...
208
    }
208
    }
Línea 209... Línea 209...
209
 
209
 
210
    /**
210
    /**
211
     * Test that a grade item is deleted for a user.
211
     * Test that a grade item is deleted for a user.
212
     */
212
     */
213
    public function test_delete_feedback_for_grade() {
213
    public function test_delete_feedback_for_grade(): void {
214
        $this->resetAfterTest();
214
        $this->resetAfterTest();
215
        // Create course, assignment, submission, and then a feedback comment.
215
        // Create course, assignment, submission, and then a feedback comment.
216
        $course = $this->getDataGenerator()->create_course();
216
        $course = $this->getDataGenerator()->create_course();
217
        // Student.
217
        // Student.
Línea 270... Línea 270...
270
    }
270
    }
Línea 271... Línea 271...
271
 
271
 
272
    /**
272
    /**
273
     * Test that a grade item is deleted for a user.
273
     * Test that a grade item is deleted for a user.
274
     */
274
     */
275
    public function test_delete_feedback_for_grades() {
275
    public function test_delete_feedback_for_grades(): void {
276
        $this->resetAfterTest();
276
        $this->resetAfterTest();
277
        // Create course, assignment, submission, and then a feedback comment.
277
        // Create course, assignment, submission, and then a feedback comment.
278
        $course = $this->getDataGenerator()->create_course();
278
        $course = $this->getDataGenerator()->create_course();
279
        // Student.
279
        // Student.