diff --git a/core/modules/rest/tests/src/Functional/EntityResource/SearchPage/SearchPageResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/SearchPage/SearchPageResourceTestBase.php index 2de6e11..e81993f 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/SearchPage/SearchPageResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/SearchPage/SearchPageResourceTestBase.php @@ -43,7 +43,14 @@ protected function setUpAuthorization($method) { * {@inheritdoc} */ protected function createEntity() { - return SearchPage::load('node_search'); + $search_page = SearchPage::create([ + 'id' => 'hinode_search', + 'plugin' => 'node_search', + 'label' => 'Search of magnetic activity of the Sun', + 'path' => 'sun', + ]); + $search_page->save(); + return $search_page; } /** @@ -51,23 +58,20 @@ protected function createEntity() { */ protected function getExpectedNormalizedEntity() { return [ - '_core' => [ - 'default_config_hash' => $this->entity->get('_core')['default_config_hash'], - ], 'configuration' => [ 'rankings' => [], ], 'dependencies' => [ 'module' => ['node'], ], - 'id' => $this->entity->id(), - 'label' => 'Content', + 'id' => 'hinode_search', + 'label' => 'Search of magnetic activity of the Sun', 'langcode' => 'en', - 'path' => 'node', + 'path' => 'sun', 'plugin' => 'node_search', 'status' => TRUE, 'uuid' => $this->entity->uuid(), - 'weight' => -10, + 'weight' => 0, ]; }