Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

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

Defines 1 class

import_test:: (2 methods):
  test_import_execute()
  import_execute_provider()


Class: import_test  - X-Ref

Tests for the import class.

test_import_execute(string $filecontents, bool $expectedpreset, bool $expectedsettings = false,bool $expectedplugins = false, bool $expecteddebugging = false, string $expectedexception = null,string $expectedpresetname = 'Imported preset')   X-Ref
Test the behaviour of execute() method.

param: string $filecontents File content to import.
param: bool $expectedpreset Whether the preset should be created or not.
param: bool $expectedsettings Whether settings will be created or not.
param: bool $expectedplugins Whether plugins will be created or not.
param: bool $expecteddebugging Whether debugging message will be thrown or not.
param: string|null $expectedexception Expected exception class (if that's the case).
param: string|null $expectedpresetname Expected preset name.

import_execute_provider()   X-Ref
Data provider for test_import_execute().

return: array