From 1ebc54bbdad28959da427f00572a200bc7a61f40 Mon Sep 17 00:00:00 2001 From: Vincent Chalamon <407859+vincentchalamon@users.noreply.github.com> Date: Mon, 21 Aug 2023 09:59:08 +0200 Subject: [PATCH] test: test fix from @soyuka --- api/composer.lock | 8 ++++---- api/tests/Api/ReviewTest.php | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/api/composer.lock b/api/composer.lock index 021b461f3..61529f18a 100644 --- a/api/composer.lock +++ b/api/composer.lock @@ -12,12 +12,12 @@ "source": { "type": "git", "url": "https://github.com/vincentchalamon/core.git", - "reference": "d6c3019671c7d668fa0cc8a624fc5bc17a26ddd2" + "reference": "dd624e9c4242c114fd3a6aab6cc6f28362a84edd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vincentchalamon/core/zipball/d6c3019671c7d668fa0cc8a624fc5bc17a26ddd2", - "reference": "d6c3019671c7d668fa0cc8a624fc5bc17a26ddd2", + "url": "https://api.github.com/repos/vincentchalamon/core/zipball/dd624e9c4242c114fd3a6aab6cc6f28362a84edd", + "reference": "dd624e9c4242c114fd3a6aab6cc6f28362a84edd", "shasum": "" }, "require": { @@ -177,7 +177,7 @@ "url": "https://tidelift.com/funding/github/packagist/api-platform/core" } ], - "time": "2023-08-08T18:08:58+00:00" + "time": "2023-08-22T13:10:24+00:00" }, { "name": "brick/math", diff --git a/api/tests/Api/ReviewTest.php b/api/tests/Api/ReviewTest.php index 4faa69b1b..b0fd2502c 100644 --- a/api/tests/Api/ReviewTest.php +++ b/api/tests/Api/ReviewTest.php @@ -135,7 +135,6 @@ public function testAsAnonymousICannotAddAReviewOnABook(): void $this->client->request('POST', '/books/'.$book->getId().'/reviews', [ 'json' => [ - 'book' => '/books/'.$book->getId(), 'body' => 'Very good book!', 'rating' => 5, ], @@ -239,7 +238,6 @@ public function testAsAUserICannotAddAReviewWithValidDataOnAnInvalidBook(): void $this->client->request('POST', '/books/invalid/reviews', [ 'auth_bearer' => $token, 'json' => [ - 'book' => '/books/'.$book->getId(), 'body' => 'Very good book!', 'rating' => 5, ], @@ -272,7 +270,6 @@ public function testAsAUserICanAddAReviewOnABook(): void $response = $this->client->request('POST', '/books/'.$book->getId().'/reviews', [ 'auth_bearer' => $token, 'json' => [ - 'book' => '/books/'.$book->getId(), 'body' => 'Very good book!', 'rating' => 5, ],