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

make:test

Create a new test class

Options

  • unit - Create a unit test. Optional
  • pest - Create a Pest test. Optional

Arguments

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