Adding test

You can create tests file for a specific model with the following command:

php artisan make:laravel-unit-test ModelName

You can also use the following command:

php artisan make:laravel-unit-test

and write the model name in the insert provided.

The model name is case-sensitive, you have to write it as it is.

In all cases, a check of the model's existence is performed after entering.

to overload existing test, you can use the tag:

--force

Last updated