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.

(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