diff --git a/core/modules/shortcut/src/Tests/ShortcutLinksTest.php b/core/modules/shortcut/src/Tests/ShortcutLinksTest.php index 58cb3e4..c5ad339 100644 --- a/core/modules/shortcut/src/Tests/ShortcutLinksTest.php +++ b/core/modules/shortcut/src/Tests/ShortcutLinksTest.php @@ -66,7 +66,7 @@ public function testShortcutLinkAdd() { $this->assertTrue(in_array($this->container->get('path.alias_manager')->getPathByAlias($test['path']), $paths), 'Shortcut created: ' . $test['path']); $this->assertLink($title, 0, 'Shortcut link found on the page.'); } - $saved_set = shortcut_set_load($set->id()); + $saved_set = ShortcutSet::load($set->id()); // Test that saving and re-loading a shortcut preserves its values. $shortcuts = $saved_set->getShortcuts(); foreach ($shortcuts as $entity) {