mirror of
https://github.com/archtechx/tenancy.git
synced 2026-09-20 16:24:03 +00:00
Make scopeSessions() respect the original configured session.files path instead of hardcoding /framework/sessions
Also rename tenantCachePath to tenantScopedPath since it's now used both for scoping cache and session paths. Note that the $originalPath local variable -- added that to avoid PHPStan errors.
This commit is contained in:
parent
efb417dada
commit
8c8bd6e88e
2 changed files with 15 additions and 8 deletions
|
|
@ -572,7 +572,7 @@ test('a file cache store without a configured lock_path defaults to using its sc
|
|||
});
|
||||
|
||||
test('a cache store using a path not based on storage_path() has the tenant suffix appended', function () {
|
||||
// tenantCachePath() has no central storage path prefix to swap for the tenant's here,
|
||||
// tenantScopedPath() has no central storage path prefix to swap for the tenant's here,
|
||||
// so it appends the tenant suffix to $path instead.
|
||||
$path = '/tmp/tenancy-cache-test';
|
||||
File::deleteDirectory($path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue