mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 04:24:03 +00:00
Move resource sharing test to original namespace
This commit is contained in:
parent
247fa47c10
commit
c5377a16f7
2 changed files with 6 additions and 2 deletions
|
|
@ -189,7 +189,11 @@ class BootstrapperTest extends TestCase
|
||||||
|
|
||||||
foreach (config('tenancy.filesystem.disks') as $disk) {
|
foreach (config('tenancy.filesystem.disks') as $disk) {
|
||||||
$suffix = config('tenancy.filesystem.suffix_base') . tenant('id');
|
$suffix = config('tenancy.filesystem.suffix_base') . tenant('id');
|
||||||
$current_path_prefix = Storage::disk($disk)->getAdapter()->getPathPrefix();
|
|
||||||
|
/** @var FilesystemAdapter $filesystemDisk */
|
||||||
|
$filesystemDisk = Storage::disk($disk);
|
||||||
|
|
||||||
|
$current_path_prefix = $filesystemDisk->getAdapter()->getPathPrefix();
|
||||||
|
|
||||||
if ($override = config("tenancy.filesystem.root_override.{$disk}")) {
|
if ($override = config("tenancy.filesystem.root_override.{$disk}")) {
|
||||||
$correct_path_prefix = str_replace('%storage_path%', storage_path(), $override);
|
$correct_path_prefix = str_replace('%storage_path%', storage_path(), $override);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Stancl\Tenancy\Tests\v3;
|
namespace Stancl\Tenancy\Tests;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue