diff --git a/core/modules/hal/tests/src/Functional/EntityResource/Shortcut/ShortcutHalJsonAnonTest.php b/core/modules/hal/tests/src/Functional/EntityResource/Shortcut/ShortcutHalJsonAnonTest.php index b5eab96..c9e8dc0 100644 --- a/core/modules/hal/tests/src/Functional/EntityResource/Shortcut/ShortcutHalJsonAnonTest.php +++ b/core/modules/hal/tests/src/Functional/EntityResource/Shortcut/ShortcutHalJsonAnonTest.php @@ -38,7 +38,7 @@ protected function getExpectedNormalizedEntity() { $normalization = $this->applyHalFieldNormalization($default_normalization); - return $normalization + [ + return $normalization + [ '_links' => [ 'self' => [ 'href' => $this->baseUrl . '/admin/config/user-interface/shortcut/link/1?_format=hal_json', diff --git a/core/modules/rest/tests/src/Functional/EntityResource/Shortcut/ShortcutResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/Shortcut/ShortcutResourceTestBase.php index 6edb4e9..c6e9195 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/Shortcut/ShortcutResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/Shortcut/ShortcutResourceTestBase.php @@ -29,7 +29,7 @@ /** * The Shortcut entity. * - * @var \Drupal\Shortcut\ShortcutInterface + * @var \Drupal\shortcut\ShortcutInterface */ protected $entity; @@ -150,6 +150,7 @@ protected function getExpectedUnauthorizedAccessMessage($method) { case 'PATCH': case 'DELETE': return "The 'access shortcuts' AND 'customize shortcut links' permissions is required."; + default: return parent::getExpectedUnauthorizedAccessMessage($method); }