Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 119... Línea 119...
119
    }
119
    }
Línea 120... Línea 120...
120
 
120
 
121
    /**
121
    /**
122
     * Quick test to make sure that get_metadata returns something.
122
     * Quick test to make sure that get_metadata returns something.
123
     */
123
     */
124
    public function test_get_metadata() {
124
    public function test_get_metadata(): void {
125
        $collection = new \core_privacy\local\metadata\collection('assignfeedback_editpdf');
125
        $collection = new \core_privacy\local\metadata\collection('assignfeedback_editpdf');
126
        $collection = \assignfeedback_editpdf\privacy\provider::get_metadata($collection);
126
        $collection = \assignfeedback_editpdf\privacy\provider::get_metadata($collection);
127
        $this->assertNotEmpty($collection);
127
        $this->assertNotEmpty($collection);
Línea 128... Línea 128...
128
    }
128
    }
129
 
129
 
130
    /**
130
    /**
131
     * Test that feedback comments are exported for a user.
131
     * Test that feedback comments are exported for a user.
132
     */
132
     */
133
    public function test_export_feedback_user_data() {
133
    public function test_export_feedback_user_data(): void {
134
        $this->resetAfterTest();
134
        $this->resetAfterTest();
135
        // Create course, assignment, submission, and then a feedback comment.
135
        // Create course, assignment, submission, and then a feedback comment.
136
        $course = $this->getDataGenerator()->create_course();
136
        $course = $this->getDataGenerator()->create_course();
Línea 167... Línea 167...
167
    }
167
    }
Línea 168... Línea 168...
168
 
168
 
169
    /**
169
    /**
170
     * Test that all feedback is deleted for a context.
170
     * Test that all feedback is deleted for a context.
171
     */
171
     */
172
    public function test_delete_feedback_for_context() {
172
    public function test_delete_feedback_for_context(): void {
173
        $this->resetAfterTest();
173
        $this->resetAfterTest();
174
        // Create course, assignment, submission, and then a feedback comment.
174
        // Create course, assignment, submission, and then a feedback comment.
175
        $course = $this->getDataGenerator()->create_course();
175
        $course = $this->getDataGenerator()->create_course();
176
        // Students.
176
        // Students.
Línea 205... Línea 205...
205
    }
205
    }
Línea 206... Línea 206...
206
 
206
 
207
    /**
207
    /**
208
     * Test that a grade item is deleted for a user.
208
     * Test that a grade item is deleted for a user.
209
     */
209
     */
210
    public function test_delete_feedback_for_grade() {
210
    public function test_delete_feedback_for_grade(): void {
211
        $this->resetAfterTest();
211
        $this->resetAfterTest();
212
        // Create course, assignment, submission, and then a feedback comment.
212
        // Create course, assignment, submission, and then a feedback comment.
213
        $course = $this->getDataGenerator()->create_course();
213
        $course = $this->getDataGenerator()->create_course();
214
        // Students.
214
        // Students.
Línea 244... Línea 244...
244
    }
244
    }
Línea 245... Línea 245...
245
 
245
 
246
    /**
246
    /**
247
     * Test that a grade item is deleted for a user.
247
     * Test that a grade item is deleted for a user.
248
     */
248
     */
249
    public function test_delete_feedback_for_grades() {
249
    public function test_delete_feedback_for_grades(): void {
Línea 250... Línea 250...
250
        global $DB;
250
        global $DB;
251
 
251
 
252
        $this->resetAfterTest();
252
        $this->resetAfterTest();