Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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.

Tests for the the Forum gradeitem.

Copyright: Andrew Nicols <andrew@nicols.co.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 190 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 mod/forum/tests/generator_trait.php

Defines 1 class


Class: forum_gradeitem_test  - X-Ref

Tests for the the Forum gradeitem.

test_get_grade_for_user_exists()   X-Ref
Test fetching of a grade for a user when the grade has been created.


test_user_has_grade()   X-Ref
Test fetching of a grade for a user when the grade has been created.


test_get_and_store_grade_for_user_with_simple_direct_grade()   X-Ref
Ensure that it is possible to get, and update, a grade for a user when simple direct grading is in use.


test_get_and_store_grade_for_user_with_rubric()   X-Ref
Ensure that it is possible to get, and update, a grade for a user when a rubric is in use.


get_forum_instance(array $config = [])   X-Ref
Get a forum instance.

param: array $config
return: forum_entity