Skip to content

Commit 822d018

Browse files
committed
db config
1 parent dfefa94 commit 822d018

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/TestCase.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ protected function getEnvironmentSetUp($app): void
6161
$app['config']->set('database.default', 'testbench');
6262
$app['config']->set('database.connections.testbench', [
6363
'driver' => env('DB_CONNECTION', 'sqlite'),
64+
'url' => env('DATABASE_URL'),
65+
'host' => env('DB_HOST', '127.0.0.1'),
66+
'port' => env('DB_PORT'),
6467
'database' => env('DB_DATABASE', ':memory:'),
6568
'username' => env('DB_USERNAME'),
6669
'password' => env('DB_PASSWORD'),
67-
'port' => env('DB_PORT'),
6870
]);
6971

7072
$app['config']->set('messenger.user_model', User::class);

0 commit comments

Comments
 (0)