Sometimes, when you are debugging a PHPUnit test, you need to display some variable or another information in the console.
Tag: test
Executing only some PHPUnit tests
When you are creating new tests with PHPUnit, if you execute all tests, it can take some time to execute. To execute them faster, you can filter the tests you want to execute.
Laravel Dusk. Cannot find Chrome binary
When I try to execute the Dusk tests in Laravel Homestead I get the “unknown error: cannot find Chrome binary” error.
Execute and test only one method with Laravel Dusk
When you are running Laravel Dusk tests from the terminal, with the command
$ php artisan dusk
sometimes you need to execute and test only one method. You can do it with the “–filter” parameter and the name of the method:
$ php artisan dusk --filter testUserInsertBlankSpacesAndThePasswordDoesNotChange