summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-02-15 12:34:36 (GMT)
committerNathaniel Catchpole2016-02-15 12:34:36 (GMT)
commit2a1c93a2bb15807cf02a59be10a83f5ff6623153 (patch)
tree1a7db31f333cc1fcd3ebed520526b993a156ff81
parenta67f54c02e0e3af284d45c124fe3f37c80564b06 (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.php5
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');