X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fhal%2Ftests%2Fsrc%2FFunctional%2FEntityResource%2FMenuLinkContent%2FMenuLinkContentHalJsonAnonTest.php;fp=web%2Fcore%2Fmodules%2Fhal%2Ftests%2Fsrc%2FFunctional%2FEntityResource%2FMenuLinkContent%2FMenuLinkContentHalJsonAnonTest.php;h=0000000000000000000000000000000000000000;hp=c4c8d943f235176cbf1fb83fcb7d13ed2cbf2ef6;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/hal/tests/src/Functional/EntityResource/MenuLinkContent/MenuLinkContentHalJsonAnonTest.php b/web/core/modules/hal/tests/src/Functional/EntityResource/MenuLinkContent/MenuLinkContentHalJsonAnonTest.php deleted file mode 100644 index c4c8d943f..000000000 --- a/web/core/modules/hal/tests/src/Functional/EntityResource/MenuLinkContent/MenuLinkContentHalJsonAnonTest.php +++ /dev/null @@ -1,74 +0,0 @@ -applyHalFieldNormalization($default_normalization); - - return $normalization + [ - '_links' => [ - 'self' => [ - 'href' => $this->baseUrl . '/admin/structure/menu/item/1/edit?_format=hal_json', - ], - 'type' => [ - 'href' => $this->baseUrl . '/rest/type/menu_link_content/menu_link_content', - ], - ], - ]; - } - - /** - * {@inheritdoc} - */ - protected function getNormalizedPostEntity() { - return parent::getNormalizedPostEntity() + [ - '_links' => [ - 'type' => [ - 'href' => $this->baseUrl . '/rest/type/menu_link_content/menu_link_content', - ], - ], - ]; - } - - /** - * {@inheritdoc} - */ - protected function getExpectedCacheContexts() { - // The 'url.site' cache context is added for '_links' in the response. - return Cache::mergeTags(parent::getExpectedCacheContexts(), ['url.site']); - } - -}