fix: allow configuring port for test database (#6236)
The `testing` database used for the tests had no way to configure a db server port. It always used some default fallback port (probably of the pdo driver). Added the `port` config setting with a new env variable `DB_TEST_PORT`. Fixes #6200
This commit is contained in:
@@ -41,6 +41,7 @@ DB_USERNAME=homestead
|
||||
DB_PASSWORD=secret
|
||||
DB_PREFIX=
|
||||
DB_TEST_HOST=127.0.0.1
|
||||
DB_TEST_PORT=3306
|
||||
DB_TEST_DATABASE=monica_test
|
||||
DB_TEST_USERNAME=homestead
|
||||
DB_TEST_PASSWORD=secret
|
||||
|
||||
@@ -99,6 +99,7 @@ $db = [
|
||||
'testing' => [
|
||||
'driver' => env('DB_TEST_DRIVER', 'mysql'),
|
||||
'host' => env('DB_TEST_HOST'),
|
||||
'port' => env('DB_TEST_PORT', '3306'),
|
||||
'unix_socket' => env('DB_TEST_UNIX_SOCKET', ''),
|
||||
'database' => env('DB_TEST_DATABASE'),
|
||||
'username' => env('DB_TEST_USERNAME'),
|
||||
|
||||
Reference in New Issue
Block a user