1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 09:04:03 +00:00

tests: allow multiple paths for tenant migrations

This commit is contained in:
Andrey 2020-01-18 14:44:10 +08:00
parent 79431e31c1
commit 36cc49a344
2 changed files with 2 additions and 2 deletions

View file

@ -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 */

View file

@ -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' => [