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.

(no description)

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

Defines 1 class


Class: editor_test  - X-Ref

Unit tests for the editor plugininfo class

test_get_enabled_plugins()   X-Ref
Test that editor::get_enabled_plugins() returns the correct list of enabled plugins.


test_enable_plugin_all()   X-Ref
Test that editor::enable_plugin set to disable all plugins will leave the textarea enabled.


test_plugintype_supports_ordering()   X-Ref
Ensure that plugintype_supports_ordering() returns true.


test_get_sorted_plugins(string $texteditors,bool $enabledonly,array $expected,)   X-Ref
Ensure that get_sorted_plugins() returns the correct list of plugins.

param: string $texteditors The $CFG->texteditors value to use as a base
param: bool $enabledonly
param: array $expected The expected order

get_sorted_plugins_provider()   X-Ref
Data provider for the get_sorted_plugins tests.

return: array

test_change_plugin_order(string $texteditors,string $pluginname,int $direction,array $neworder,string $newtexteditors,)   X-Ref
Ensure that change_plugin_order() changes the order of the plugins.

param: string $texteditors
param: string $pluginname
param: int $direction
param: array $neworder
param: string $newtexteditors

change_plugin_order_provider()   X-Ref
Data provider fro the change_plugin_order() tests.

return: array