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

(no description)

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

Defines 1 class


Class: get_mapping_information_test  - X-Ref

External function tests class for get_mapping_information.

get_mapping_information_provider()   X-Ref
Data provider for test_get_mapping_information().

return: array[]

test_get_mapping_information(array $currentfields,array $newfields,string $pluginname,string $fieldstocreate,string $fieldstoremove)   X-Ref
Test for get_mapping_information method.

param: array $currentfields Fields of the current activity.
param: array $newfields Fields to be imported.
param: string $pluginname The plugin preset to be imported.
param: string $fieldstocreate Expected fields on $fieldstocreate.
param: string $fieldstoremove Expected fields on $fieldstoremove.

test_get_mapping_information_for_wrong_preset()   X-Ref
Test for get_mapping_information method for wrong presets.