1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 16:34:04 +00:00

handle / inconsistency in s3 prefix

This commit is contained in:
Samuel Štancl 2022-02-15 15:54:09 +01:00
parent a94f242910
commit e1ab850c32

View file

@ -194,7 +194,7 @@ class BootstrapperTest extends TestCase
// Check that disk prefixes respect the root_override logic
$this->assertSame($expected_storage_path . '/app/', $this->getDiskPrefix('local'));
$this->assertSame($expected_storage_path . '/app/public/', $this->getDiskPrefix('public'));
$this->assertSame('/tenant' . tenant('id') . '/', $this->getDiskPrefix('s3'));
$this->assertSame('tenant' . tenant('id') . '/', ltrim($this->getDiskPrefix('s3'), '/'));
// Check suffixing logic
$new_storage_path = storage_path();