Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

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

(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