1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:14:04 +00:00

Fix issues with bootstrappers' state

This commit is contained in:
Samuel Štancl 2019-09-27 22:35:59 +02:00
parent 753ff517c4
commit 4b5554dcac
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,5 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
foreach ($this->app['config']['tenancy.filesystem.disks'] as $disk) {
Storage::disk($disk)->getAdapter()->setPathPrefix($this->originalPaths['disks'][$disk]);
}
$this->originalPaths = [];
}
}

View file

@ -103,6 +103,8 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
'tenancy.bootstrappers.redis' => \Stancl\Tenancy\TenancyBootstrappers\RedisTenancyBootstrapper::class,
]);
$app->singleton(\Stancl\Tenancy\TenancyBootstrappers\RedisTenancyBootstrapper::class);
if (env('TENANCY_TEST_STORAGE_DRIVER', 'redis') === 'redis') {
$app['config']->set([
'tenancy.storage_driver' => RedisStorageDriver::class,