When running multiple tests in Laravel Dusk i get the error Constant version already defined in web.php
, because web.php is run before each test.
How to prevent that ?
add
protected $preserveGlobalState = FALSE;
protected $runTestInSeparateProcess = TRUE;
to DuskTestClass