Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

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

(no description)

Copyright: nicolas@moodle.com
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 989 lines (41 kb)
Included or required: 6 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

grade_base_testcase:: (7 methods):
  setUp()
  load_modules()
  load_scales()
  load_grade_categories()
  load_grade_items()
  load_grade_grades()
  load_grade_outcomes()

test_grade_grade_flatten_dependencies_array:: (1 method):
  test_flatten_dependencies_array()


Class: grade_base_testcase  - X-Ref

Shared code for all grade related tests.

Here is a brief explanation of the test data set up in these unit tests.
category1 => array(category2 => array(grade_item1, grade_item2), category3 => array(grade_item3))
3 users for 3 grade_items
setUp()   X-Ref
No description

load_modules()   X-Ref
No description

load_scales()   X-Ref
No description

load_grade_categories()   X-Ref
Load grade_category data into the database, and adds the corresponding objects to this class' variable.
category structure:


load_grade_items()   X-Ref
Load grade_item data into the database, and adds the corresponding objects to this class' variable.


load_grade_grades()   X-Ref
Load grade_grades data into the database, and adds the corresponding objects to this class' variable.


load_grade_outcomes()   X-Ref
Load grade_outcome data into the database, and adds the corresponding objects to this class' variable.


Class: test_grade_grade_flatten_dependencies_array  - X-Ref

Allow calling protected method.

test_flatten_dependencies_array(&$a,&$b)   X-Ref
No description