Skip to content

Commit

Permalink
test: test fix from @soyuka
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Aug 22, 2023
1 parent 61eba76 commit 1ebc54b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions api/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions api/tests/Api/ReviewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down Expand Up @@ -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,
],
Expand Down Expand Up @@ -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,
],
Expand Down

0 comments on commit 1ebc54b

Please sign in to comment.