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.

Class: grade_grade_test  - X-Ref

Test grade grades

test_grade_grade()   X-Ref
No description

sub_test_grade_grade_construct()   X-Ref
No description

sub_test_grade_grade_insert()   X-Ref
No description

sub_test_grade_grade_update()   X-Ref
No description

sub_test_grade_grade_fetch()   X-Ref
No description

sub_test_grade_grade_fetch_all()   X-Ref
No description

sub_test_grade_grade_load_grade_item()   X-Ref
No description

sub_test_grade_grade_standardise_score()   X-Ref
No description

sub_test_grade_grade_is_locked()   X-Ref
No description

sub_test_grade_grade_set_hidden()   X-Ref
No description

sub_test_grade_grade_is_hidden()   X-Ref
No description

test_flatten_dependencies()   X-Ref
Test \grade_grade::flatten_dependencies_array()


test_grade_grade_min_max()   X-Ref
No description

test_grade_grade_min_max_with_course_item()   X-Ref
No description

test_grade_grade_min_max_with_category_item()   X-Ref
No description

sub_test_grade_grade_deleted()   X-Ref
Tests when a grade_grade has been deleted.


add_feedback_file_to_copy()   X-Ref
Creates a feedback file to copy to the gradebook area.


sub_test_grade_grade_deleted_event()   X-Ref
Tests grade_deleted event.


test_category_get_hiding_affected()   X-Ref
Tests get_hiding_affected by locked category and overridden grades.


call_get_hiding_affected($course, $user)   X-Ref
Call get_hiding_affected().

param: \stdClass $course The course object
param: \stdClass $user The student object
return: array