diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationListUiTest.php index fceb41d110136942d267b8cb6342eedec0910426..c8233e24ed366ca5ec942dce3cb4930a39b3d277 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\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(), ));