Search code examples
laravellaravel-dusk

Constant version already defined in web.php


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 ?


Solution

  • add

        protected $preserveGlobalState = FALSE;
        protected $runTestInSeparateProcess = TRUE;
    

    to DuskTestClass

    Source constant already defined article