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

(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