Laravel integrates automated testing: unit tests for small units of code and feature tests that simulate HTTP requests on the application. You run them with php artisan test. The RefreshDatabase trait resets the database between tests so they stay independent.
Example
php artisan test --filter=ProduitTest