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.

(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