X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fhal%2Ftests%2Fsrc%2FFunctional%2FEntityResource%2FNode%2FNodeHalJsonAnonTest.php;fp=web%2Fcore%2Fmodules%2Fhal%2Ftests%2Fsrc%2FFunctional%2FEntityResource%2FNode%2FNodeHalJsonAnonTest.php;h=0000000000000000000000000000000000000000;hp=2de6539fe420827964ab5130d0f45e1d40f156a1;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php b/web/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php deleted file mode 100644 index 2de6539fe..000000000 --- a/web/core/modules/hal/tests/src/Functional/EntityResource/Node/NodeHalJsonAnonTest.php +++ /dev/null @@ -1,111 +0,0 @@ -applyHalFieldNormalization($default_normalization); - - $author = User::load($this->entity->getOwnerId()); - return $normalization + [ - '_links' => [ - 'self' => [ - 'href' => $this->baseUrl . '/llama?_format=hal_json', - ], - 'type' => [ - 'href' => $this->baseUrl . '/rest/type/node/camelids', - ], - $this->baseUrl . '/rest/relation/node/camelids/revision_uid' => [ - [ - 'href' => $this->baseUrl . '/user/' . $author->id() . '?_format=hal_json', - ], - ], - $this->baseUrl . '/rest/relation/node/camelids/uid' => [ - [ - 'href' => $this->baseUrl . '/user/' . $author->id() . '?_format=hal_json', - 'lang' => 'en', - ], - ], - ], - '_embedded' => [ - $this->baseUrl . '/rest/relation/node/camelids/revision_uid' => [ - [ - '_links' => [ - 'self' => [ - 'href' => $this->baseUrl . '/user/' . $author->id() . '?_format=hal_json', - ], - 'type' => [ - 'href' => $this->baseUrl . '/rest/type/user/user', - ], - ], - 'uuid' => [ - ['value' => $author->uuid()] - ], - ], - ], - $this->baseUrl . '/rest/relation/node/camelids/uid' => [ - [ - '_links' => [ - 'self' => [ - 'href' => $this->baseUrl . '/user/' . $author->id() . '?_format=hal_json', - ], - 'type' => [ - 'href' => $this->baseUrl . '/rest/type/user/user', - ], - ], - 'uuid' => [ - ['value' => $author->uuid()] - ], - 'lang' => 'en', - ], - ], - ], - ]; - } - - /** - * {@inheritdoc} - */ - protected function getNormalizedPostEntity() { - return parent::getNormalizedPostEntity() + [ - '_links' => [ - 'type' => [ - 'href' => $this->baseUrl . '/rest/type/node/camelids', - ], - ], - ]; - } - -}