1
0
Fork 0
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:
Samuel Štancl 2019-02-08 23:59:27 +01:00
parent dc21bfa37a
commit 2c69c37032
6 changed files with 30 additions and 3 deletions

View file

@ -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);