Commit 934567b7 authored by catch's avatar catch

Issue #2641614 by Mac_Weber: Replace deprecated usage of ...

Issue #2641614 by Mac_Weber: Replace deprecated usage of  entity_create('shortcut_set') with a direct call to  EntityShortcutSet::create()
parent 71b78ccc
......@@ -11,6 +11,7 @@
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 @@ public function doFormatsListTest() {
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(),
));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment