Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 39 and 311]

(no description)

File Size: 285 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: importlib_test  - X-Ref

Tests grade_import_lib functions.

setUpBeforeClass()   X-Ref
Load required test libraries


import_grades($data)   X-Ref
Import grades into 'grade_import_values' table. This is done differently in the various import plugins,
so there is no direct API to call.

param: array $data Information to be inserted into the table.
return: int The insert ID of the sql statement.

test_grade_import_commit()   X-Ref
Tests for importing grades from an external source.


test_grade_import_commit_unenrolled_user()   X-Ref
Test grade import commit for users who aren't enrolled on the target course


test_get_unenrolled_users_in_import()   X-Ref
Test retrieving users included in impoty who aren't enrolled on the target course