Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 39 and 401] [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 305 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: gradelib_test  - X-Ref

Unit tests for /lib/gradelib.php.

test_grade_update_mod_grades()   X-Ref
No description

test_remove_grade_letters()   X-Ref
Tests the function remove_grade_letters().


test_grade_course_category_delete()   X-Ref
Tests the function grade_course_category_delete().


test_grade_regrade_final_grades()   X-Ref
Tests the function grade_regrade_final_grades().


test_grade_get_date_for_user_grade(\stdClass $grade, \stdClass $user, ?int $expected)   X-Ref
Tests for the grade_get_date_for_user_grade function.

param: \stdClass $grade
param: \stdClass $user
param: int $expected

grade_get_date_for_user_grade_provider()   X-Ref
Data provider for tests of the grade_get_date_for_user_grade function.

return: array

test_get_grade_letters()   X-Ref
Test the caching of grade letters.


test_get_grade_letters_custom()   X-Ref
Test custom letters.