Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 95... Línea 95...
95
    }
95
    }
Línea 96... Línea 96...
96
 
96
 
97
    /**
97
    /**
98
     * Quick test to make sure that get_metadata returns something.
98
     * Quick test to make sure that get_metadata returns something.
99
     */
99
     */
100
    public function test_get_metadata() {
100
    public function test_get_metadata(): void {
101
        $collection = new \core_privacy\local\metadata\collection('assignfeedback_file');
101
        $collection = new \core_privacy\local\metadata\collection('assignfeedback_file');
102
        $collection = \assignfeedback_file\privacy\provider::get_metadata($collection);
102
        $collection = \assignfeedback_file\privacy\provider::get_metadata($collection);
103
        $this->assertNotEmpty($collection);
103
        $this->assertNotEmpty($collection);
Línea 104... Línea 104...
104
    }
104
    }
105
 
105
 
106
    /**
106
    /**
107
     * Test that feedback comments are exported for a user.
107
     * Test that feedback comments are exported for a user.
108
     */
108
     */
109
    public function test_export_feedback_user_data() {
109
    public function test_export_feedback_user_data(): void {
110
        $this->resetAfterTest();
110
        $this->resetAfterTest();
111
        // Create course, assignment, submission, and then a feedback comment.
111
        // Create course, assignment, submission, and then a feedback comment.
112
        $course = $this->getDataGenerator()->create_course();
112
        $course = $this->getDataGenerator()->create_course();
Línea 136... Línea 136...
136
    }
136
    }
Línea 137... Línea 137...
137
 
137
 
138
    /**
138
    /**
139
     * Test that all feedback is deleted for a context.
139
     * Test that all feedback is deleted for a context.
140
     */
140
     */
141
    public function test_delete_feedback_for_context() {
141
    public function test_delete_feedback_for_context(): void {
142
        $this->resetAfterTest();
142
        $this->resetAfterTest();
143
        // Create course, assignment, submission, and then a feedback comment.
143
        // Create course, assignment, submission, and then a feedback comment.
144
        $course = $this->getDataGenerator()->create_course();
144
        $course = $this->getDataGenerator()->create_course();
145
        // Students.
145
        // Students.
Línea 172... Línea 172...
172
    }
172
    }
Línea 173... Línea 173...
173
 
173
 
174
    /**
174
    /**
175
     * Test that a grade item is deleted for a user.
175
     * Test that a grade item is deleted for a user.
176
     */
176
     */
177
    public function test_delete_feedback_for_grade() {
177
    public function test_delete_feedback_for_grade(): void {
178
        $this->resetAfterTest();
178
        $this->resetAfterTest();
179
        // Create course, assignment, submission, and then a feedback comment.
179
        // Create course, assignment, submission, and then a feedback comment.
180
        $course = $this->getDataGenerator()->create_course();
180
        $course = $this->getDataGenerator()->create_course();
181
        // Students.
181
        // Students.
Línea 209... Línea 209...
209
    }
209
    }
Línea 210... Línea 210...
210
 
210
 
211
    /**
211
    /**
212
     * Test that a grade item is deleted for a user.
212
     * Test that a grade item is deleted for a user.
213
     */
213
     */
214
    public function test_delete_feedback_for_grades() {
214
    public function test_delete_feedback_for_grades(): void {
215
        $this->resetAfterTest();
215
        $this->resetAfterTest();
216
        // Create course, assignment, submission, and then a feedback comment.
216
        // Create course, assignment, submission, and then a feedback comment.
217
        $course = $this->getDataGenerator()->create_course();
217
        $course = $this->getDataGenerator()->create_course();
218
        // Students.
218
        // Students.