Laravel parallel test not working, but in normal test worked perfectly
I am wondering how to change the database in Laravel parallel test. I changed the database as below but it didn't work. ParallelTesting::setUpTestCase(function (int $token, TestCase $testCase) { $newDb = getenv("DB_DATABASE") . $token; Config::set('database.connections.mongodb.database', $newDb); app("db")->purge($newDb); }); I have to…