Loading core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php +7 −45 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Drupal\Tests\editor\Functional\Rest; use Drupal\ckeditor5\Plugin\CKEditor5Plugin\Heading; use Drupal\editor\Entity\Editor; use Drupal\filter\Entity\FilterFormat; use Drupal\Tests\rest\Functional\EntityResource\ConfigEntityResourceTestBase; Loading @@ -14,7 +15,7 @@ abstract class EditorResourceTestBase extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['ckeditor', 'editor']; protected static $modules = ['ckeditor5', 'editor']; /** * {@inheritdoc} Loading Loading @@ -59,7 +60,7 @@ protected function createEntity() { // Create a "Camelids" editor. $camelids = Editor::create([ 'format' => 'llama', 'editor' => 'ckeditor', 'editor' => 'ckeditor5', ]); $camelids ->setImageUploadSettings([ Loading Loading @@ -87,10 +88,10 @@ protected function getExpectedNormalizedEntity() { 'filter.format.llama', ], 'module' => [ 'ckeditor', 'ckeditor5', ], ], 'editor' => 'ckeditor', 'editor' => 'ckeditor5', 'format' => 'llama', 'image_upload' => [ 'status' => FALSE, Loading @@ -105,49 +106,10 @@ protected function getExpectedNormalizedEntity() { 'langcode' => 'en', 'settings' => [ 'toolbar' => [ 'rows' => [ [ [ 'name' => 'Formatting', 'items' => [ 'Bold', 'Italic', ], ], [ 'name' => 'Links', 'items' => [ 'DrupalLink', 'DrupalUnlink', ], ], [ 'name' => 'Lists', 'items' => [ 'BulletedList', 'NumberedList', ], ], [ 'name' => 'Media', 'items' => [ 'Blockquote', 'DrupalImage', ], ], [ 'name' => 'Tools', 'items' => [ 'Source', ], ], ], ], 'items' => ['heading', 'bold', 'italic'], ], 'plugins' => [ 'language' => [ 'language_list' => 'un', ], 'ckeditor5_heading' => Heading::DEFAULT_CONFIGURATION, ], ], 'status' => TRUE, Loading core/modules/jsonapi/tests/src/Functional/EditorTest.php +8 −46 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Drupal\Tests\jsonapi\Functional; use Drupal\ckeditor5\Plugin\CKEditor5Plugin\Heading; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Session\AccountInterface; use Drupal\Core\Url; Loading @@ -18,7 +19,7 @@ class EditorTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['filter', 'editor', 'ckeditor']; protected static $modules = ['filter', 'editor', 'ckeditor5']; /** * {@inheritdoc} Loading Loading @@ -73,7 +74,7 @@ protected function createEntity() { // Create a "Camelids" editor. $camelids = Editor::create([ 'format' => 'llama', 'editor' => 'ckeditor', 'editor' => 'ckeditor5', ]); $camelids ->setImageUploadSettings([ Loading Loading @@ -120,10 +121,10 @@ protected function getExpectedDocument() { 'filter.format.llama', ], 'module' => [ 'ckeditor', 'ckeditor5', ], ], 'editor' => 'ckeditor', 'editor' => 'ckeditor5', 'image_upload' => [ 'status' => FALSE, 'scheme' => 'public', Loading @@ -137,49 +138,10 @@ protected function getExpectedDocument() { 'langcode' => 'en', 'settings' => [ 'toolbar' => [ 'rows' => [ [ [ 'name' => 'Formatting', 'items' => [ 'Bold', 'Italic', ], ], [ 'name' => 'Links', 'items' => [ 'DrupalLink', 'DrupalUnlink', ], ], [ 'name' => 'Lists', 'items' => [ 'BulletedList', 'NumberedList', ], ], [ 'name' => 'Media', 'items' => [ 'Blockquote', 'DrupalImage', ], ], [ 'name' => 'Tools', 'items' => [ 'Source', ], ], ], ], 'items' => ['heading', 'bold', 'italic'], ], 'plugins' => [ 'language' => [ 'language_list' => 'un', ], 'ckeditor5_heading' => Heading::DEFAULT_CONFIGURATION, ], ], 'status' => TRUE, Loading Loading @@ -223,7 +185,7 @@ protected function createAnotherEntity($key) { $entity = Editor::create([ 'format' => 'pachyderm', 'editor' => 'ckeditor', 'editor' => 'ckeditor5', ]); $entity->setImageUploadSettings([ Loading Loading
core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php +7 −45 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Drupal\Tests\editor\Functional\Rest; use Drupal\ckeditor5\Plugin\CKEditor5Plugin\Heading; use Drupal\editor\Entity\Editor; use Drupal\filter\Entity\FilterFormat; use Drupal\Tests\rest\Functional\EntityResource\ConfigEntityResourceTestBase; Loading @@ -14,7 +15,7 @@ abstract class EditorResourceTestBase extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['ckeditor', 'editor']; protected static $modules = ['ckeditor5', 'editor']; /** * {@inheritdoc} Loading Loading @@ -59,7 +60,7 @@ protected function createEntity() { // Create a "Camelids" editor. $camelids = Editor::create([ 'format' => 'llama', 'editor' => 'ckeditor', 'editor' => 'ckeditor5', ]); $camelids ->setImageUploadSettings([ Loading Loading @@ -87,10 +88,10 @@ protected function getExpectedNormalizedEntity() { 'filter.format.llama', ], 'module' => [ 'ckeditor', 'ckeditor5', ], ], 'editor' => 'ckeditor', 'editor' => 'ckeditor5', 'format' => 'llama', 'image_upload' => [ 'status' => FALSE, Loading @@ -105,49 +106,10 @@ protected function getExpectedNormalizedEntity() { 'langcode' => 'en', 'settings' => [ 'toolbar' => [ 'rows' => [ [ [ 'name' => 'Formatting', 'items' => [ 'Bold', 'Italic', ], ], [ 'name' => 'Links', 'items' => [ 'DrupalLink', 'DrupalUnlink', ], ], [ 'name' => 'Lists', 'items' => [ 'BulletedList', 'NumberedList', ], ], [ 'name' => 'Media', 'items' => [ 'Blockquote', 'DrupalImage', ], ], [ 'name' => 'Tools', 'items' => [ 'Source', ], ], ], ], 'items' => ['heading', 'bold', 'italic'], ], 'plugins' => [ 'language' => [ 'language_list' => 'un', ], 'ckeditor5_heading' => Heading::DEFAULT_CONFIGURATION, ], ], 'status' => TRUE, Loading
core/modules/jsonapi/tests/src/Functional/EditorTest.php +8 −46 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Drupal\Tests\jsonapi\Functional; use Drupal\ckeditor5\Plugin\CKEditor5Plugin\Heading; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Session\AccountInterface; use Drupal\Core\Url; Loading @@ -18,7 +19,7 @@ class EditorTest extends ConfigEntityResourceTestBase { /** * {@inheritdoc} */ protected static $modules = ['filter', 'editor', 'ckeditor']; protected static $modules = ['filter', 'editor', 'ckeditor5']; /** * {@inheritdoc} Loading Loading @@ -73,7 +74,7 @@ protected function createEntity() { // Create a "Camelids" editor. $camelids = Editor::create([ 'format' => 'llama', 'editor' => 'ckeditor', 'editor' => 'ckeditor5', ]); $camelids ->setImageUploadSettings([ Loading Loading @@ -120,10 +121,10 @@ protected function getExpectedDocument() { 'filter.format.llama', ], 'module' => [ 'ckeditor', 'ckeditor5', ], ], 'editor' => 'ckeditor', 'editor' => 'ckeditor5', 'image_upload' => [ 'status' => FALSE, 'scheme' => 'public', Loading @@ -137,49 +138,10 @@ protected function getExpectedDocument() { 'langcode' => 'en', 'settings' => [ 'toolbar' => [ 'rows' => [ [ [ 'name' => 'Formatting', 'items' => [ 'Bold', 'Italic', ], ], [ 'name' => 'Links', 'items' => [ 'DrupalLink', 'DrupalUnlink', ], ], [ 'name' => 'Lists', 'items' => [ 'BulletedList', 'NumberedList', ], ], [ 'name' => 'Media', 'items' => [ 'Blockquote', 'DrupalImage', ], ], [ 'name' => 'Tools', 'items' => [ 'Source', ], ], ], ], 'items' => ['heading', 'bold', 'italic'], ], 'plugins' => [ 'language' => [ 'language_list' => 'un', ], 'ckeditor5_heading' => Heading::DEFAULT_CONFIGURATION, ], ], 'status' => TRUE, Loading Loading @@ -223,7 +185,7 @@ protected function createAnotherEntity($key) { $entity = Editor::create([ 'format' => 'pachyderm', 'editor' => 'ckeditor', 'editor' => 'ckeditor5', ]); $entity->setImageUploadSettings([ Loading