Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 29... Línea 29...
29
 * @copyright 2012 Andrew Davis
29
 * @copyright 2012 Andrew Davis
30
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
31
 */
31
 */
32
class gradelib_test extends \advanced_testcase {
32
class gradelib_test extends \advanced_testcase {
Línea 33... Línea 33...
33
 
33
 
Línea 34... Línea 34...
34
    public function test_grade_update_mod_grades() {
34
    public function test_grade_update_mod_grades(): void {
Línea 35... Línea 35...
35
 
35
 
36
        $this->resetAfterTest(true);
36
        $this->resetAfterTest(true);
Línea 59... Línea 59...
59
    }
59
    }
Línea 60... Línea 60...
60
 
60
 
61
    /**
61
    /**
62
     * Tests the function remove_grade_letters().
62
     * Tests the function remove_grade_letters().
63
     */
63
     */
64
    public function test_remove_grade_letters() {
64
    public function test_remove_grade_letters(): void {
Línea 65... Línea 65...
65
        global $DB;
65
        global $DB;
Línea 66... Línea 66...
66
 
66
 
Línea 102... Línea 102...
102
    }
102
    }
Línea 103... Línea 103...
103
 
103
 
104
    /**
104
    /**
105
     * Tests the function grade_course_category_delete().
105
     * Tests the function grade_course_category_delete().
106
     */
106
     */
107
    public function test_grade_course_category_delete() {
107
    public function test_grade_course_category_delete(): void {
Línea 108... Línea 108...
108
        global $DB;
108
        global $DB;
Línea 109... Línea 109...
109
 
109
 
Línea 125... Línea 125...
125
    }
125
    }
Línea 126... Línea 126...
126
 
126
 
127
    /**
127
    /**
128
     * Tests the function grade_regrade_final_grades().
128
     * Tests the function grade_regrade_final_grades().
129
     */
129
     */
130
    public function test_grade_regrade_final_grades() {
130
    public function test_grade_regrade_final_grades(): void {
Línea 131... Línea 131...
131
        global $DB;
131
        global $DB;
Línea 132... Línea 132...
132
 
132
 
Línea 249... Línea 249...
249
    }
249
    }
Línea 250... Línea 250...
250
 
250
 
251
    /**
251
    /**
252
     * Test the caching of grade letters.
252
     * Test the caching of grade letters.
253
     */
253
     */
Línea 254... Línea 254...
254
    public function test_get_grade_letters() {
254
    public function test_get_grade_letters(): void {
Línea 255... Línea 255...
255
 
255
 
256
        $this->resetAfterTest();
256
        $this->resetAfterTest();
Línea 274... Línea 274...
274
    }
274
    }
Línea 275... Línea 275...
275
 
275
 
276
    /**
276
    /**
277
     * Test custom letters.
277
     * Test custom letters.
278
     */
278
     */
279
    public function test_get_grade_letters_custom() {
279
    public function test_get_grade_letters_custom(): void {
Línea 280... Línea 280...
280
        global $DB;
280
        global $DB;
Línea 281... Línea 281...
281
 
281
 
Línea 307... Línea 307...
307
     * When getting a calculated grade containing an error, we mark grading finished and don't keep trying to regrade.
307
     * When getting a calculated grade containing an error, we mark grading finished and don't keep trying to regrade.
308
     *
308
     *
309
     * @covers \grade_get_grades()
309
     * @covers \grade_get_grades()
310
     * @return void
310
     * @return void
311
     */
311
     */
312
    public function test_grade_get_grades_errors() {
312
    public function test_grade_get_grades_errors(): void {
313
        $this->resetAfterTest();
313
        $this->resetAfterTest();
Línea 314... Línea 314...
314
 
314
 
315
        // Setup some basics.
315
        // Setup some basics.
316
        $course = $this->getDataGenerator()->create_course();
316
        $course = $this->getDataGenerator()->create_course();