@@ -54,7 +54,7 @@ public function asNonAdminUserICannotGetACollectionOfBooks(int $expectedCode, st
5454 self ::assertResponseHeaderSame ('content-type ' , 'application/problem+json; charset=utf-8 ' );
5555 self ::assertResponseHeaderSame ('link ' , '<http://www.w3.org/ns/hydra/error>; rel="http://www.w3.org/ns/json-ld#error",<http://localhost/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation" ' );
5656 self ::assertJsonContains ([
57- '@type ' => 'Error ' ,
57+ '@type ' => 'hydra: Error ' ,
5858 'title ' => 'An error occurred ' ,
5959 'description ' => $ hydraDescription ,
6060 ]);
@@ -196,7 +196,7 @@ public function asNonAdminUserICannotGetABook(int $expectedCode, string $hydraDe
196196 self ::assertResponseHeaderSame ('content-type ' , 'application/problem+json; charset=utf-8 ' );
197197 self ::assertResponseHeaderSame ('link ' , '<http://www.w3.org/ns/hydra/error>; rel="http://www.w3.org/ns/json-ld#error",<http://localhost/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation" ' );
198198 self ::assertJsonContains ([
199- '@type ' => 'Error ' ,
199+ '@type ' => 'hydra: Error ' ,
200200 'title ' => 'An error occurred ' ,
201201 'description ' => $ hydraDescription ,
202202 ]);
@@ -254,7 +254,7 @@ public function asNonAdminUserICannotCreateABook(int $expectedCode, string $hydr
254254 self ::assertResponseHeaderSame ('content-type ' , 'application/problem+json; charset=utf-8 ' );
255255 self ::assertResponseHeaderSame ('link ' , '<http://www.w3.org/ns/hydra/error>; rel="http://www.w3.org/ns/json-ld#error",<http://localhost/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation" ' );
256256 self ::assertJsonContains ([
257- '@type ' => 'Error ' ,
257+ '@type ' => 'hydra: Error ' ,
258258 'title ' => 'An error occurred ' ,
259259 'description ' => $ hydraDescription ,
260260 ]);
@@ -442,7 +442,7 @@ public function asNonAdminUserICannotUpdateBook(int $expectedCode, string $hydra
442442 self ::assertResponseHeaderSame ('content-type ' , 'application/problem+json; charset=utf-8 ' );
443443 self ::assertResponseHeaderSame ('link ' , '<http://www.w3.org/ns/hydra/error>; rel="http://www.w3.org/ns/json-ld#error",<http://localhost/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation" ' );
444444 self ::assertJsonContains ([
445- '@type ' => 'Error ' ,
445+ '@type ' => 'hydra: Error ' ,
446446 'title ' => 'An error occurred ' ,
447447 'description ' => $ hydraDescription ,
448448 ]);
@@ -570,7 +570,7 @@ public function asNonAdminUserICannotDeleteABook(int $expectedCode, string $hydr
570570 self ::assertResponseHeaderSame ('content-type ' , 'application/problem+json; charset=utf-8 ' );
571571 self ::assertResponseHeaderSame ('link ' , '<http://www.w3.org/ns/hydra/error>; rel="http://www.w3.org/ns/json-ld#error",<http://localhost/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation" ' );
572572 self ::assertJsonContains ([
573- '@type ' => 'Error ' ,
573+ '@type ' => 'hydra: Error ' ,
574574 'title ' => 'An error occurred ' ,
575575 'description ' => $ hydraDescription ,
576576 ]);
0 commit comments