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 402] [Versions 310 and 403] [Versions 39 and 310]

(no description)

Copyright: nicolas@moodle.com
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 983 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