@@ -54,9 +54,9 @@ public function asNonAdminUserICannotGetACollectionOfBooks(int $expectedCode, st
54
54
self ::assertResponseHeaderSame ('content-type ' , 'application/problem+json; charset=utf-8 ' );
55
55
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" ' );
56
56
self ::assertJsonContains ([
57
- '@type ' => 'hydra: Error ' ,
58
- 'hydra: title ' => 'An error occurred ' ,
59
- 'hydra: description ' => $ hydraDescription ,
57
+ '@type ' => 'Error ' ,
58
+ 'title ' => 'An error occurred ' ,
59
+ 'description ' => $ hydraDescription ,
60
60
]);
61
61
}
62
62
@@ -196,9 +196,9 @@ public function asNonAdminUserICannotGetABook(int $expectedCode, string $hydraDe
196
196
self ::assertResponseHeaderSame ('content-type ' , 'application/problem+json; charset=utf-8 ' );
197
197
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" ' );
198
198
self ::assertJsonContains ([
199
- '@type ' => 'hydra: Error ' ,
200
- 'hydra: title ' => 'An error occurred ' ,
201
- 'hydra: description ' => $ hydraDescription ,
199
+ '@type ' => 'Error ' ,
200
+ 'title ' => 'An error occurred ' ,
201
+ 'description ' => $ hydraDescription ,
202
202
]);
203
203
}
204
204
@@ -254,9 +254,9 @@ public function asNonAdminUserICannotCreateABook(int $expectedCode, string $hydr
254
254
self ::assertResponseHeaderSame ('content-type ' , 'application/problem+json; charset=utf-8 ' );
255
255
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" ' );
256
256
self ::assertJsonContains ([
257
- '@type ' => 'hydra: Error ' ,
258
- 'hydra: title ' => 'An error occurred ' ,
259
- 'hydra: description ' => $ hydraDescription ,
257
+ '@type ' => 'Error ' ,
258
+ 'title ' => 'An error occurred ' ,
259
+ 'description ' => $ hydraDescription ,
260
260
]);
261
261
}
262
262
@@ -290,7 +290,7 @@ public static function getInvalidDataOnCreate(): iterable
290
290
Response::HTTP_UNPROCESSABLE_ENTITY ,
291
291
[
292
292
'@type ' => 'ConstraintViolationList ' ,
293
- 'hydra: title ' => 'An error occurred ' ,
293
+ 'title ' => 'An error occurred ' ,
294
294
'violations ' => [
295
295
[
296
296
'propertyPath ' => 'book ' ,
@@ -316,8 +316,8 @@ public static function getInvalidData(): iterable
316
316
Response::HTTP_UNPROCESSABLE_ENTITY ,
317
317
[
318
318
'@type ' => 'ConstraintViolationList ' ,
319
- 'hydra: title ' => 'An error occurred ' ,
320
- 'hydra: description ' => 'condition: This value should be of type ' . BookCondition::class . '. ' ,
319
+ 'title ' => 'An error occurred ' ,
320
+ 'description ' => 'condition: This value should be of type ' . BookCondition::class . '. ' ,
321
321
'violations ' => [
322
322
[
323
323
'propertyPath ' => 'condition ' ,
@@ -334,8 +334,8 @@ public static function getInvalidData(): iterable
334
334
Response::HTTP_UNPROCESSABLE_ENTITY ,
335
335
[
336
336
'@type ' => 'ConstraintViolationList ' ,
337
- 'hydra: title ' => 'An error occurred ' ,
338
- 'hydra: description ' => 'condition: This value should be of type ' . BookCondition::class . '. ' ,
337
+ 'title ' => 'An error occurred ' ,
338
+ 'description ' => 'condition: This value should be of type ' . BookCondition::class . '. ' ,
339
339
'violations ' => [
340
340
[
341
341
'propertyPath ' => 'condition ' ,
@@ -352,7 +352,7 @@ public static function getInvalidData(): iterable
352
352
Response::HTTP_UNPROCESSABLE_ENTITY ,
353
353
[
354
354
'@type ' => 'ConstraintViolationList ' ,
355
- 'hydra: title ' => 'An error occurred ' ,
355
+ 'title ' => 'An error occurred ' ,
356
356
'violations ' => [
357
357
[
358
358
'propertyPath ' => 'book ' ,
@@ -442,9 +442,9 @@ public function asNonAdminUserICannotUpdateBook(int $expectedCode, string $hydra
442
442
self ::assertResponseHeaderSame ('content-type ' , 'application/problem+json; charset=utf-8 ' );
443
443
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" ' );
444
444
self ::assertJsonContains ([
445
- '@type ' => 'hydra: Error ' ,
446
- 'hydra: title ' => 'An error occurred ' ,
447
- 'hydra: description ' => $ hydraDescription ,
445
+ '@type ' => 'Error ' ,
446
+ 'title ' => 'An error occurred ' ,
447
+ 'description ' => $ hydraDescription ,
448
448
]);
449
449
}
450
450
@@ -570,9 +570,9 @@ public function asNonAdminUserICannotDeleteABook(int $expectedCode, string $hydr
570
570
self ::assertResponseHeaderSame ('content-type ' , 'application/problem+json; charset=utf-8 ' );
571
571
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" ' );
572
572
self ::assertJsonContains ([
573
- '@type ' => 'hydra: Error ' ,
574
- 'hydra: title ' => 'An error occurred ' ,
575
- 'hydra: description ' => $ hydraDescription ,
573
+ '@type ' => 'Error ' ,
574
+ 'title ' => 'An error occurred ' ,
575
+ 'description ' => $ hydraDescription ,
576
576
]);
577
577
}
578
578
0 commit comments