You are here

protected function FilterFormatResourceTestBase::getExpectedNormalizedEntity in Drupal 8

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

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/filter/tests/src/Functional/Rest/FilterFormatResourceTestBase.php, line 56

Class

FilterFormatResourceTestBase

Namespace

Drupal\Tests\filter\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [],
    'filters' => [
      'filter_html' => [
        'id' => 'filter_html',
        'provider' => 'filter',
        'status' => TRUE,
        'weight' => -10,
        'settings' => [
          'allowed_html' => '<p> <a> <b> <lo>',
          'filter_html_help' => TRUE,
          'filter_html_nofollow' => FALSE,
        ],
      ],
    ],
    'format' => 'pablo',
    'langcode' => 'es',
    'name' => 'Pablo Picasso',
    'status' => TRUE,
    'uuid' => $this->entity
      ->uuid(),
    'weight' => 0,
  ];
}