Skip to content

Commit

Permalink
Update ValidateJsonContentTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Feb 1, 2025
1 parent 8d6c553 commit 8da5d41
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/Unit/Http/Middleware/ValidateJsonContentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
describe(class_basename(ValidateJsonContent::class), function (): void {
beforeEach(function (): void {
config(['apiato.requests.use-etag' => true]);
$this->next = function (Illuminate\Http\Request $request): Response {
return response('content');
};
$this->next = (fn (Illuminate\Http\Request $request): Response => response('content'));
});

it('should throw an exception if the request does not expect JSON and feature is enabled', function (): void {
Expand Down

0 comments on commit 8da5d41

Please sign in to comment.