NOTE: To run in vagrant:
vendor/bin/phpunit
A way to test without writing actual test cases
Looks like a good overview: Testing Vue components with Laravel Dusk - Laravel News
Using a different environment
-
php - How to specify a different .env file for phpunit in Laravel 5? - Stack Overflow
-
Interesting but do not use in memory database Set up Laravel 5.4 with Dusk using phpunit.xml, .env.dusk.local, and an sqlite in-memory database - Stack Overflow*
Testing Form Request unit testing - How to test form request rules in Laravel 5? - Stack Overflow
Email testing Writing Your Own Test Doubles
In the future Testing real world VueJs apps – ITNEXT
https://stackoverflow.com/questions/40151658/laravel-testing-with-jwt-auth shows inline factory
Build authentication into your Laravel API with JSON Web Tokens (JWT)