I am testing Laravel 5.5, and when I run artisan dusk, I get:
Cannot open file ".../bootstrap/autoload.php".
This just needs to be changed in stubs/phpunit.xml to vendor/autoload.php. In the meantime, I've just created a symlink in my bootstrap directory and it seems to be working fine.
Got the same issue, fixed by copying the stub file and changing it myself:
cp vendor/laravel/dusk/stubs/phpunit.xml phpunit.dusk.xml
And update phpunit.dusk.xml, Dusk checks if you have this file and basically uses it.
Same issue here. @dbpolito 's soultion worked for me.
I have a same issue with Laravel 5.5
I had same issue but @dbpolito's solution worked.
I have the same issue with Laravel 5.4.
I solve like this.
create a file autoload.php in my_project/bootstrap folder. With this content.
<?php
define('LARAVEL_START', microtime(true));
require_once __DIR__.'/../vendor/autoload.php';
that's it. Then I run the php artisan dusk. it works find.
Closing this issue because it's already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue.
Most helpful comment
Got the same issue, fixed by copying the stub file and changing it myself:
cp vendor/laravel/dusk/stubs/phpunit.xml phpunit.dusk.xmlAnd update
phpunit.dusk.xml,Duskchecks if you have this file and basically uses it.