mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 13:14:05 +00:00
Write more tests, fix filesystem support for s3
This commit is contained in:
parent
dc21bfa37a
commit
2c69c37032
6 changed files with 30 additions and 3 deletions
|
|
@ -51,7 +51,11 @@ class BootstrapsTenancyTest extends TestCase
|
|||
if ($override = config("tenancy.filesystem.root_override.{$disk}")) {
|
||||
$correct_path_prefix = str_replace("%storage_path%", storage_path(), $override);
|
||||
} else {
|
||||
$correct_path_prefix = $old_storage_facade_roots[$disk] . "/$suffix/";
|
||||
if ($base = $old_storage_facade_roots[$disk]) {
|
||||
$correct_path_prefix = $base . "/$suffix/";
|
||||
} else {
|
||||
$correct_path_prefix = "$suffix/";
|
||||
}
|
||||
}
|
||||
|
||||
$this->assertSame($correct_path_prefix, $current_path_prefix);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue