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 39 and 401] [Versions 401 and 402] [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: 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