mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Fix issues with bootstrappers' state
This commit is contained in:
parent
753ff517c4
commit
4b5554dcac
2 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,5 @@ class FilesystemTenancyBootstrapper implements TenancyBootstrapper
|
||||||
foreach ($this->app['config']['tenancy.filesystem.disks'] as $disk) {
|
foreach ($this->app['config']['tenancy.filesystem.disks'] as $disk) {
|
||||||
Storage::disk($disk)->getAdapter()->setPathPrefix($this->originalPaths['disks'][$disk]);
|
Storage::disk($disk)->getAdapter()->setPathPrefix($this->originalPaths['disks'][$disk]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->originalPaths = [];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
|
||||||
'tenancy.bootstrappers.redis' => \Stancl\Tenancy\TenancyBootstrappers\RedisTenancyBootstrapper::class,
|
'tenancy.bootstrappers.redis' => \Stancl\Tenancy\TenancyBootstrappers\RedisTenancyBootstrapper::class,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$app->singleton(\Stancl\Tenancy\TenancyBootstrappers\RedisTenancyBootstrapper::class);
|
||||||
|
|
||||||
if (env('TENANCY_TEST_STORAGE_DRIVER', 'redis') === 'redis') {
|
if (env('TENANCY_TEST_STORAGE_DRIVER', 'redis') === 'redis') {
|
||||||
$app['config']->set([
|
$app['config']->set([
|
||||||
'tenancy.storage_driver' => RedisStorageDriver::class,
|
'tenancy.storage_driver' => RedisStorageDriver::class,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue