Search moodle.org's
Developer Documentation

See Release Notes

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

Differences Between: [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.