Skip to content

Commit e1ab850

Browse files
committedFeb 15, 2022
handle / inconsistency in s3 prefix
1 parent a94f242 commit e1ab850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/BootstrapperTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function filesystem_data_is_separated()
194194
// Check that disk prefixes respect the root_override logic
195195
$this->assertSame($expected_storage_path . '/app/', $this->getDiskPrefix('local'));
196196
$this->assertSame($expected_storage_path . '/app/public/', $this->getDiskPrefix('public'));
197-
$this->assertSame('/tenant' . tenant('id') . '/', $this->getDiskPrefix('s3'));
197+
$this->assertSame('tenant' . tenant('id') . '/', ltrim($this->getDiskPrefix('s3'), '/'));
198198

199199
// Check suffixing logic
200200
$new_storage_path = storage_path();

0 commit comments

Comments
 (0)