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

Add command tests

This commit is contained in:
Samuel Štancl 2019-02-09 11:53:48 +01:00
parent 33fcb8a936
commit e1def355f9
13 changed files with 98 additions and 15 deletions

View file

@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Storage;
trait BootstrapsTenancy
{
public $oldStoragePaths = [];
public $originalSettings = [];
public function bootstrap()
{
@ -41,7 +41,7 @@ trait BootstrapsTenancy
public function suffixFilesystemRootPaths()
{
$old = $this->oldStoragePaths ?: [
$old = $this->originalSettings ?: [
"storage_disks" => [],
"storage_path" => $this->app->storagePath(),
];
@ -64,6 +64,6 @@ trait BootstrapsTenancy
$old['storage_disks'][$disk] = $root;
}
$this->oldStoragePaths = $old;
$this->originalSettings = $old;
}
}