This code sample provides an example of the issue described here.
- install laravel
- install laravel-json-api
- setup the api
- register a route for the user model
- register an adapter for the user model
- register a schema for the user model
- write a test for the user endpoint
- enable sqlite database in phpunit.xml
- write some tests in the \Tests\Feature\UsersTest class to demonstrate the issue
- install the project:
composer install
- run the tests:
php artisan test