php bin/console make:test

Creates a new test class

Usage

make:test [<type> [<name>]]

Arguments

type   The type of test: <fg=yellow>TestCase</> (basic PHPUnit tests), <fg=yellow>KernelTestCase</> (basic tests that have access to Symfony services), <fg=yellow>WebTestCase</> (to run browser-like scenarios, but that don't execute JavaScript code), <fg=yellow>ApiTestCase</> (to run API-oriented scenarios), <fg=yellow>PantherTestCase</> (to run e2e scenarios, using a real-browser or HTTP client and a real web server) 
name   The name of the test class (e.g. <fg=yellow>BlogPostTest</>) 

Help

The make:test command generates a new test class.

php bin/console make:test TestCase BlogPostTest

If the first argument is missing, the command will ask for the test type interactively.

If the second argument is missing, the command will ask for the class name interactively.
* TestCase: basic PHPUnit tests
* KernelTestCase: basic tests that have access to Symfony services
* WebTestCase: to run browser-like scenarios, but that don't execute JavaScript code
* ApiTestCase: to run API-oriented scenarios
* PantherTestCase: to run e2e scenarios, using a real-browser or HTTP client and a real web server