diff options
author | Nathaniel Catchpole | 2016-02-15 12:34:36 (GMT) |
---|---|---|
committer | Nathaniel Catchpole | 2016-02-15 12:34:36 (GMT) |
commit | 2a1c93a2bb15807cf02a59be10a83f5ff6623153 (patch) | |
tree | 1a7db31f333cc1fcd3ebed520526b993a156ff81 | |
parent | a67f54c02e0e3af284d45c124fe3f37c80564b06 (diff) |
Issue #2641612 by Mac_Weber, heykarthikwithu: Replace deprecated usage of entity_create('search_page') with a direct call to SearchPage::create()
-rw-r--r-- | core/modules/system/src/Tests/Entity/ConfigEntityImportTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/modules/system/src/Tests/Entity/ConfigEntityImportTest.php b/core/modules/system/src/Tests/Entity/ConfigEntityImportTest.php index 1dae804..cf60631 100644 --- a/core/modules/system/src/Tests/Entity/ConfigEntityImportTest.php +++ b/core/modules/system/src/Tests/Entity/ConfigEntityImportTest.php @@ -9,6 +9,7 @@ namespace Drupal\system\Tests\Entity; 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 @@ class ConfigEntityImportTest extends WebTestBase { 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'); |