Skip to content

Commit 7e4f8f5

Browse files
chore: upgrade API Platform to 4.0.5 (#470)
1 parent 29e5b46 commit 7e4f8f5

File tree

8 files changed

+78
-78
lines changed

8 files changed

+78
-78
lines changed

api/composer.lock

Lines changed: 52 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/config/packages/api_platform.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
api_platform:
22
title: API Platform's demo
3-
version: 4.0.4
3+
version: 4.0.5
44
description: |
55
This is a demo application of the [API Platform](https://api-platform.com) framework.
66
[Its source code](https://github.com/api-platform/demo) includes various examples, check it out!

api/tests/Api/Admin/BookTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
]);

api/tests/Api/Admin/ReviewTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function asNonAdminUserICannotGetACollectionOfReviews(int $expectedCode,
5555
self::assertResponseHeaderSame('content-type', 'application/problem+json; charset=utf-8');
5656
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"');
5757
self::assertJsonContains([
58-
'@type' => 'Error',
58+
'@type' => 'hydra:Error',
5959
'title' => 'An error occurred',
6060
'description' => $hydraDescription,
6161
]);
@@ -163,7 +163,7 @@ public function asNonAdminUserICannotGetAReview(int $expectedCode, string $hydra
163163
self::assertResponseHeaderSame('content-type', 'application/problem+json; charset=utf-8');
164164
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"');
165165
self::assertJsonContains([
166-
'@type' => 'Error',
166+
'@type' => 'hydra:Error',
167167
'title' => 'An error occurred',
168168
'description' => $hydraDescription,
169169
]);
@@ -227,7 +227,7 @@ public function asNonAdminUserICannotUpdateAReview(int $expectedCode, string $hy
227227
self::assertResponseHeaderSame('content-type', 'application/problem+json; charset=utf-8');
228228
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"');
229229
self::assertJsonContains([
230-
'@type' => 'Error',
230+
'@type' => 'hydra:Error',
231231
'title' => 'An error occurred',
232232
'description' => $hydraDescription,
233233
]);
@@ -334,7 +334,7 @@ public function asNonAdminUserICannotDeleteAReview(int $expectedCode, string $hy
334334
self::assertResponseHeaderSame('content-type', 'application/problem+json; charset=utf-8');
335335
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"');
336336
self::assertJsonContains([
337-
'@type' => 'Error',
337+
'@type' => 'hydra:Error',
338338
'title' => 'An error occurred',
339339
'description' => $hydraDescription,
340340
]);

0 commit comments

Comments
 (0)