Skip to the content.

Creating a test

To create a test, we use the “php artisan make:module:test ModuleName testName” command.

php artisan make:module:test blog BlogTest

This will create a test in the path modules/blog/src/Tests/BlogTest.php