X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fhal%2Ftests%2Fsrc%2FFunctional%2FEntityResource%2FEntityTest%2FEntityTestHalJsonAnonTest.php;fp=web%2Fcore%2Fmodules%2Fhal%2Ftests%2Fsrc%2FFunctional%2FEntityResource%2FEntityTest%2FEntityTestHalJsonAnonTest.php;h=0000000000000000000000000000000000000000;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=eff0b97e8c236b006c44b742de0a8fd966a296a3;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php b/web/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php deleted file mode 100644 index eff0b97e8..000000000 --- a/web/core/modules/hal/tests/src/Functional/EntityResource/EntityTest/EntityTestHalJsonAnonTest.php +++ /dev/null @@ -1,93 +0,0 @@ -applyHalFieldNormalization($default_normalization); - - $author = User::load(0); - return $normalization + [ - '_links' => [ - 'self' => [ - 'href' => $this->baseUrl . '/entity_test/1?_format=hal_json', - ], - 'type' => [ - 'href' => $this->baseUrl . '/rest/type/entity_test/entity_test', - ], - $this->baseUrl . '/rest/relation/entity_test/entity_test/user_id' => [ - [ - 'href' => $this->baseUrl . '/user/0?_format=hal_json', - 'lang' => 'en', - ], - ], - ], - '_embedded' => [ - $this->baseUrl . '/rest/relation/entity_test/entity_test/user_id' => [ - [ - '_links' => [ - 'self' => [ - 'href' => $this->baseUrl . '/user/0?_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/entity_test/entity_test', - ], - ], - ]; - } - -}