1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 19:24:04 +00:00

Obtain suffix base from config instead of hardcoding

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
lukinovec 2026-04-13 16:47:08 +02:00 committed by GitHub
parent 33c28405ad
commit 5e0153c507
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -200,7 +200,8 @@ test('tenant storage gets created when TenantCreated listens to CreateTenantStor
$centralStoragePath = storage_path(); $centralStoragePath = storage_path();
$tenant = Tenant::create(); $tenant = Tenant::create();
$tenantStoragePath = $centralStoragePath . '/tenant' . $tenant->getTenantKey(); $suffixBase = config('tenancy.filesystem.suffix_base', 'tenant');
$tenantStoragePath = $centralStoragePath . '/' . $suffixBase . $tenant->getTenantKey();
$this->assertDirectoryExists($tenantStoragePath . '/framework/cache'); $this->assertDirectoryExists($tenantStoragePath . '/framework/cache');
}); });