From fb57845dd2c20ebc37ec1cc0aa9ed04ac22b4871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 29 Jun 2019 14:03:55 +0200 Subject: [PATCH] Create default postgres db --- .travis.yml | 1 + tests/TestCase.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 644ee8ef..91e49a37 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ before_script: - mysql -e 'CREATE DATABASE travis_tenancy;' - export DB_USERNAME=root DB_PASSWORD="" DB_DATABASE=travis_tenancy CODECOV_TOKEN="24382d15-84e7-4a55-bea4-c4df96a24a9b" - cat vendor/laravel/framework/src/Illuminate/Foundation/Application.php| grep 'const VERSION' + - psql -c 'create database default;' -U postgres script: vendor/bin/phpunit -v --coverage-clover=coverage.xml diff --git a/tests/TestCase.php b/tests/TestCase.php index 5921debd..a0214840 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -67,7 +67,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase 'suffix' => '.sqlite', ], 'database.connections.sqlite.database' => ':memory:', - 'database.connections.pgsql.database' => null, + 'database.connections.pgsql.database' => 'default', 'database.connections.pgsql.username' => 'postgres', 'tenancy.filesystem.disks' => [ 'local',