From fefe12dab40c4e1e4877f6299b80f002b0e152ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 16 Aug 2019 12:00:30 +0200 Subject: [PATCH] Fix issues caused by loadMigrationsFrom --- tests/TestCase.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 86872876..e363ce0b 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -23,9 +23,11 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase Redis::connection('tenancy')->flushdb(); Redis::connection('cache')->flushdb(); - config(['database.default' => 'central']); - $this->loadLaravelMigrations(['--database' => 'central']); - $this->loadMigrationsFrom(realpath(__DIR__ . '/../src/assets/migrations')); + $this->loadMigrationsFrom([ + '--path' => realpath(__DIR__ . '/../src/assets/migrations'), + '--database' => 'central', + ]); + config(['database.default' => 'sqlite']); // fix issue caused by loadMigrationsFrom if ($this->autoCreateTenant) { $this->createTenant(); @@ -38,7 +40,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase protected function tearDown(): void { - config(['database.default' => 'central']); + // config(['database.default' => 'central']); parent::tearDown(); }