Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 47... Línea 47...
47
    }
47
    }
Línea 48... Línea 48...
48
 
48
 
49
    /**
49
    /**
50
     * Test for grade item delete.
50
     * Test for grade item delete.
51
     */
51
     */
Línea 52... Línea 52...
52
    public function test_grade_item_delete() {
52
    public function test_grade_item_delete(): void {
53
 
53
 
Línea 54... Línea 54...
54
        $this->resetAfterTest();
54
        $this->resetAfterTest();
Línea 80... Línea 80...
80
     * @dataProvider grade_item_update_data
80
     * @dataProvider grade_item_update_data
81
     * @param int $newgrade new activity grade
81
     * @param int $newgrade new activity grade
82
     * @param bool $reset if has to reset grades
82
     * @param bool $reset if has to reset grades
83
     * @param string $idnumber the new idnumber
83
     * @param string $idnumber the new idnumber
84
     */
84
     */
85
    public function test_grade_item_update(int $newgrade, bool $reset, string $idnumber) {
85
    public function test_grade_item_update(int $newgrade, bool $reset, string $idnumber): void {
Línea 86... Línea 86...
86
 
86
 
87
        $this->resetAfterTest();
87
        $this->resetAfterTest();
Línea 88... Línea 88...
88
        $this->setAdminUser();
88
        $this->setAdminUser();
Línea 196... Línea 196...
196
     * @param int $newgrade the new activity grade
196
     * @param int $newgrade the new activity grade
197
     * @param bool $all if has to be applied to all students or just to one
197
     * @param bool $all if has to be applied to all students or just to one
198
     * @param int $completion 1 all student have the activity completed, 0 one have incompleted
198
     * @param int $completion 1 all student have the activity completed, 0 one have incompleted
199
     * @param array $results expected results (user1 grade, user2 grade)
199
     * @param array $results expected results (user1 grade, user2 grade)
200
     */
200
     */
201
    public function test_update_grades(int $newgrade, bool $all, int $completion, array $results) {
201
    public function test_update_grades(int $newgrade, bool $all, int $completion, array $results): void {
Línea 202... Línea 202...
202
 
202
 
203
        $this->resetAfterTest();
203
        $this->resetAfterTest();
Línea 204... Línea 204...
204
        $this->setAdminUser();
204
        $this->setAdminUser();