@3rgo IIUC, you want parallel testing for the PostgreSQL and MongoDB connections, where you will need to override the default database connection settings for your tests. This can be done by creating a new database configuration file specifically for your tests and using the DB_CONNECTION environment variable to specify which connection to use.
For example, you could create a database.testing.php configuration file in your config directory and set up the PostgreSQL and MongoDB connections like this:
'default' => env('DB_CONNECTION', 'mysql'),
'mysql' => [
// MySQL connection settings
],
'pgsql' => [
// PostgreSQL connection settings
],
'mongodb' => [
// MongoDB connection settings
],
Then, in your phpunit.xml file, you can specify the DB_CONNECTION environment variable for each of your test processes:
<phpunit>
<!-- Other configuration options -->
<php>
<!-- Other PHP options -->
<env name="DB_CONNECTION" value="mysql"/>
</php>
<php processIsolation="true" timeout="36