diff --git a/core/modules/system/src/Tests/Entity/ConfigEntityImportTest.php b/core/modules/system/src/Tests/Entity/ConfigEntityImportTest.php index 1dae804eb2ccf16e90b686ee6f1e0f2a8c11784c..cf60631f9f66fb0f37edb98dd5d003f5fefb9496 100644 --- a/core/modules/system/src/Tests/Entity/ConfigEntityImportTest.php +++ b/core/modules/system/src/Tests/Entity/ConfigEntityImportTest.php @@ -9,6 +9,7 @@ use Drupal\Core\Entity\EntityWithPluginCollectionInterface; use Drupal\image\Entity\ImageStyle; +use Drupal\search\Entity\SearchPage; use Drupal\simpletest\WebTestBase; use Drupal\system\Entity\Action; @@ -160,10 +161,10 @@ protected function doImageStyleUpdate() { protected function doSearchPageUpdate() { // Create a test search page with a known label. $name = 'search.page.apple'; - $entity = entity_create('search_page', array( + $entity = SearchPage::create([ 'id' => 'apple', 'plugin' => 'search_extra_type_search', - )); + ]); $entity->save(); $this->checkSinglePluginConfigSync($entity, 'configuration', 'boost', 'bi');