laravel-json-api / laravel

JSON:API for Laravel applications
MIT License
523 stars 43 forks source link

Feature test on view single resource #257

Closed ahmadmhm closed 9 months ago

ahmadmhm commented 9 months ago

I wrote feature test for a resource that includes index and single resource. I defined readonly() on it route. For example: $server->resource('transactions', '\\'.JsonApiController::class)->readonly();. When i run test I have got 500 error beacuse there is exception handleing in this file when user not authorized to view that resource. src/Http/Controllers/Actions/FetchOne.php in line 46;

Thank for your attention.

ahmadmhm commented 9 months ago

Wrong version usage.