diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 41076cc..a46c4e2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -70,8 +70,8 @@ jobs: postgresql: image: postgres:15 env: - POSTGRES_DB: forge - POSTGRES_USER: forge + POSTGRES_DB: laravel + POSTGRES_USER: laravel POSTGRES_PASSWORD: password ports: - 5432:5432 @@ -123,7 +123,7 @@ jobs: run: vendor/bin/phpunit env: DB_CONNECTION: pgsql - DB_USERNAME: forge + DB_USERNAME: laravel DB_PASSWORD: password sqlite: diff --git a/tests/TestCase.php b/tests/TestCase.php index 010f0a5..9e1caae 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -21,4 +21,9 @@ protected function getPackageProviders($app) { return [PowerJoinsServiceProvider::class]; } + + protected function getEnvironmentSetUp($app) + { + $app->config->set('databases.connections.pgsql.database', env('DB_DATABASE', 'laravel')); + } }