The Laravel Artisan Cheatsheet now has an API. Learn more.

make:test

Create a new test class

Options

  • force - Create the class even if the test already exists Optional
  • unit - Create a unit test Optional
  • pest - Create a Pest test Optional

Arguments

  • name - The name of the test Required
php artisan make:test [-f|--force] [-u|--unit] [-p|--pest] [--] <name>