MDL-76867 core_admin: Remove tinymce following MDL-77308

This commit is contained in:
Andrew Nicols
2023-03-14 21:41:48 +08:00
committed by Jun Pataleta
parent 734f5446e3
commit 0b54a57e2a
2 changed files with 6 additions and 20 deletions
+4 -8
View File
@@ -77,50 +77,46 @@ class set_plugin_order_test extends \externallib_advanced_testcase {
[
'initialstate' => 'textarea,tiny',
'pluginname' => 'editor_textarea',
1, // DOWN.
'direction' => 1, // DOWN.
'expected' => [
'tiny',
'textarea',
'atto',
'tinymce',
],
'newtexteditors' => 'tiny,textarea',
],
[
'initialstate' => 'textarea,tiny',
'pluginname' => 'editor_textarea',
-1, // UP.
'direction' => -1, // UP.
'expected' => [
'textarea',
'tiny',
'atto',
'tinymce',
],
'newtexteditors' => 'textarea,tiny',
],
[
'initialstate' => 'textarea,tiny',
'pluginname' => 'editor_tiny',
1, // DOWN.
'direction' => 1, // DOWN.
// Tiny is already at the bottom of the list of enabled plugins.
'expected' => [
'textarea',
'tiny',
'atto',
'tinymce',
],
'newtexteditors' => 'textarea,tiny',
],
[
'initialstate' => 'textarea,tiny',
'pluginname' => 'editor_atto',
1, // DOWN.
'direction' => 1, // DOWN.
// Atto is not enabled. Disabled editors are listed lexically after enabled editors.
'expected' => [
'textarea',
'tiny',
'atto',
'tinymce',
],
'newtexteditors' => 'textarea,tiny',
],
+2 -12
View File
@@ -141,7 +141,6 @@ class editor_test extends advanced_testcase {
// Disabled editors are listed alphabetically at the end.
'atto',
'tinymce',
],
],
[
@@ -153,7 +152,6 @@ class editor_test extends advanced_testcase {
// Disabled editors are listed alphabetically at the end.
'atto',
'textarea',
'tinymce',
],
],
];
@@ -204,7 +202,6 @@ class editor_test extends advanced_testcase {
'tiny',
'textarea',
'atto',
'tinymce',
],
'newtexteditors' => 'tiny,textarea',
],
@@ -217,7 +214,6 @@ class editor_test extends advanced_testcase {
'textarea',
'tiny',
'atto',
'tinymce',
],
'newtexteditors' => 'textarea,tiny',
],
@@ -230,7 +226,6 @@ class editor_test extends advanced_testcase {
'textarea',
'tiny',
'atto',
'tinymce',
],
'newtexteditors' => 'textarea,tiny',
],
@@ -242,7 +237,6 @@ class editor_test extends advanced_testcase {
'tiny',
'textarea',
'atto',
'tinymce',
],
'newtexteditors' => 'tiny,textarea',
],
@@ -255,7 +249,6 @@ class editor_test extends advanced_testcase {
'tiny',
'textarea',
'atto',
'tinymce',
],
'newtexteditors' => 'tiny,textarea',
],
@@ -268,20 +261,18 @@ class editor_test extends advanced_testcase {
'textarea',
'tiny',
'atto',
'tinymce',
],
'newtexteditors' => 'textarea,tiny',
],
[
'texteditors' => 'textarea,tiny',
'pluginname' => 'tinymce',
'pluginname' => 'atto',
'direction' => base::MOVE_UP,
// TinyMCE is not enabled. No change expected.
// Atto is not enabled. No change expected.
'expected' => [
'textarea',
'tiny',
'atto',
'tinymce',
],
'newtexteditors' => 'textarea,tiny',
],
@@ -294,7 +285,6 @@ class editor_test extends advanced_testcase {
'textarea',
'tiny',
'atto',
'tinymce',
],
'newtexteditors' => 'textarea,tiny',
],