(no description)
File Size: | 298 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
editor_test:: (7 methods):
test_get_enabled_plugins()
test_enable_plugin_all()
test_plugintype_supports_ordering()
test_get_sorted_plugins()
get_sorted_plugins_provider()
test_change_plugin_order()
change_plugin_order_provider()
Class: editor_test - X-Ref
Unit tests for the editor plugininfo classtest_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 |