You are here

protected function FacetResourceTestBase::getExpectedNormalizedEntity in Facets 8

Returns the expected normalization of the entity.

Return value

array

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

See also

::createEntity()

File

tests/src/Functional/Rest/FacetResourceTestBase.php, line 62

Class

FacetResourceTestBase
Class FacetResourceTestBase.

Namespace

Drupal\Tests\facets\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [],
    'empty_behavior' => [
      'behavior' => 'none',
    ],
    'enable_parent_when_child_gets_disabled' => TRUE,
    'exclude' => FALSE,
    'keep_hierarchy_parents_active' => FALSE,
    'expand_hierarchy' => FALSE,
    'facet_source_id' => NULL,
    'field_identifier' => NULL,
    'hard_limit' => NULL,
    'id' => 'owl',
    'langcode' => 'en',
    'min_count' => 1,
    'name' => NULL,
    'only_visible_when_facet_source_is_visible' => NULL,
    'processor_configs' => [
      'url_processor_handler' => [
        'processor_id' => 'url_processor_handler',
        'settings' => [],
        'weights' => [
          'build' => -10,
          'pre_query' => -10,
        ],
      ],
    ],
    'query_operator' => NULL,
    'show_only_one_result' => FALSE,
    'show_title' => NULL,
    'status' => TRUE,
    'url_alias' => NULL,
    'use_hierarchy' => FALSE,
    'uuid' => 'uuid-owl',
    'weight' => NULL,
    'widget' => [
      'config' => [
        'show_numbers' => TRUE,
      ],
      'type' => 'links',
    ],
  ];
}