summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2015-12-29 12:02:26 (GMT)
committerNathaniel Catchpole2015-12-29 12:02:26 (GMT)
commit934567b7a9f1b1a5f6a208d5c29c08998c845287 (patch)
tree8002dc243d564e4b646da2c723815923f5e77163
parent71b78ccc60e14e1dbb2464762f94e2c974a6d0a3 (diff)
Issue #2641614 by Mac_Weber: Replace deprecated usage of entity_create('shortcut_set') with a direct call to EntityShortcutSet::create()
-rw-r--r--core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php
index fceb41d..c8233e2 100644
--- a/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php
+++ b/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php
@@ -11,6 +11,7 @@ use Drupal\Component\Utility\Unicode;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\simpletest\WebTestBase;
+use Drupal\shortcut\Entity\ShortcutSet;
/**
* Visit all lists.
@@ -281,7 +282,7 @@ class ConfigTranslationListUiTest extends WebTestBase {
public function doShortcutListTest() {
// Create a test shortcut to decouple looking for translate operations
// link so this does not test more than necessary.
- $shortcut = entity_create('shortcut_set', array(
+ $shortcut = ShortcutSet::create(array(
'id' => Unicode::strtolower($this->randomMachineName(16)),
'label' => $this->randomString(),
));