Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

Unit tests for /lib/gradelib.php.

Copyright: 2012 Andrew Davis
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 304 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_gradelib_testcase  - X-Ref

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.