You are here

protected function EditorResourceTestBase::getExpectedNormalizedEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php \Drupal\Tests\editor\Functional\Rest\EditorResourceTestBase::getExpectedNormalizedEntity()
  2. 9 core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php \Drupal\Tests\editor\Functional\Rest\EditorResourceTestBase::getExpectedNormalizedEntity()

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php, line 84

Class

EditorResourceTestBase
ResourceTestBase for Editor entity.

Namespace

Drupal\Tests\editor\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [
      'config' => [
        'filter.format.llama',
      ],
      'module' => [
        'ckeditor5',
      ],
    ],
    'editor' => 'ckeditor5',
    'format' => 'llama',
    'image_upload' => [
      'status' => FALSE,
      'scheme' => 'public',
      'directory' => 'inline-images',
      'max_size' => '',
      'max_dimensions' => [
        'width' => NULL,
        'height' => NULL,
      ],
    ],
    'langcode' => 'en',
    'settings' => [
      'toolbar' => [
        'items' => [
          'heading',
          'bold',
          'italic',
        ],
      ],
      'plugins' => [
        'ckeditor5_heading' => Heading::DEFAULT_CONFIGURATION,
      ],
    ],
    'status' => TRUE,
    'uuid' => $this->entity
      ->uuid(),
  ];
}