You are here

protected function SearchPageResourceTestBase::getExpectedNormalizedEntity in Drupal 8

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

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

core/modules/search/tests/src/Functional/Rest/SearchPageResourceTestBase.php, line 59

Class

SearchPageResourceTestBase

Namespace

Drupal\Tests\search\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'configuration' => [
      'rankings' => [],
    ],
    'dependencies' => [
      'module' => [
        'node',
      ],
    ],
    'id' => 'hinode_search',
    'label' => 'Search of magnetic activity of the Sun',
    'langcode' => 'en',
    'path' => 'sun',
    'plugin' => 'node_search',
    'status' => TRUE,
    'uuid' => $this->entity
      ->uuid(),
    'weight' => 0,
  ];
}