From e1ab850c32f7d2486e464c5c4ec81b86bbcbc310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 15 Feb 2022 15:54:09 +0100 Subject: [PATCH] handle / inconsistency in s3 prefix --- tests/BootstrapperTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/BootstrapperTest.php b/tests/BootstrapperTest.php index 7bbbcdaa..29aa7dc9 100644 --- a/tests/BootstrapperTest.php +++ b/tests/BootstrapperTest.php @@ -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();