From 36cc49a344813566850b1b60ae7b55576e311a9e Mon Sep 17 00:00:00 2001 From: Andrey Date: Sat, 18 Jan 2020 14:44:10 +0800 Subject: [PATCH] tests: allow multiple paths for tenant migrations --- tests/CommandsTest.php | 2 +- tests/TestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index 071f929c..5c984570 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -18,7 +18,7 @@ class CommandsTest extends TestCase { parent::setUp(); - config(['tenancy.migrations_directory' => database_path('../migrations')]); + config('tenancy.migrations_paths', [database_path('migrations/tenant')]); } /** @test */ diff --git a/tests/TestCase.php b/tests/TestCase.php index 8df82561..0c6ccb69 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -96,7 +96,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase 'tenancy.redis.tenancy' => env('TENANCY_TEST_REDIS_TENANCY', true), 'database.redis.client' => env('TENANCY_TEST_REDIS_CLIENT', 'phpredis'), 'tenancy.redis.prefixed_connections' => ['default'], - 'tenancy.migrations_directory' => database_path('../migrations'), + 'tenancy.migrations_paths' => [database_path('../migrations')], 'tenancy.storage_drivers.db.connection' => 'central', 'tenancy.bootstrappers.redis' => \Stancl\Tenancy\TenancyBootstrappers\RedisTenancyBootstrapper::class, 'queue.connections.central' => [