Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 36... Línea 36...
36
 * @category  test
36
 * @category  test
37
 * @copyright 2021 Mark Nelson <marknelson@catalyst-au.net>
37
 * @copyright 2021 Mark Nelson <marknelson@catalyst-au.net>
38
 * @license   http://www.gnu.org/copyleft/gpl.html GNU Public License
38
 * @license   http://www.gnu.org/copyleft/gpl.html GNU Public License
39
 * @coversDefaultClass \core_grades\component_gradeitem
39
 * @coversDefaultClass \core_grades\component_gradeitem
40
 */
40
 */
41
class component_gradeitem_test extends advanced_testcase {
41
final class component_gradeitem_test extends advanced_testcase {
Línea 42... Línea 42...
42
 
42
 
43
    /**
43
    /**
44
     * Test get_formatted_grade_for_user with points.
44
     * Test get_formatted_grade_for_user with points.
45
     *
45
     *
Línea 216... Línea 216...
216
     * @param int $gradeforum The grade_forum value for the forum.
216
     * @param int $gradeforum The grade_forum value for the forum.
217
     * @param int $gradegiven The grade given by the teacher.
217
     * @param int $gradegiven The grade given by the teacher.
218
     * @param int|null $displaytype The display type of the grade.
218
     * @param int|null $displaytype The display type of the grade.
219
     * @return \stdClass|null
219
     * @return \stdClass|null
220
     */
220
     */
221
    protected function initialise_test_and_get_grade_item(int $gradeforum, int $gradegiven, int $displaytype = null): \stdClass {
221
    protected function initialise_test_and_get_grade_item(int $gradeforum, int $gradegiven, ?int $displaytype = null): \stdClass {
222
        $this->resetAfterTest();
222
        $this->resetAfterTest();
Línea 223... Línea 223...
223
 
223
 
224
        $forum = $this->get_forum_instance([
224
        $forum = $this->get_forum_instance([
225
            // Negative numbers mean a scale, positive numbers represent the maximum mark.
225
            // Negative numbers mean a scale, positive numbers represent the maximum mark.