mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
Fix test
This commit is contained in:
parent
9ed7308754
commit
c3e3a33ed0
1 changed files with 4 additions and 1 deletions
|
|
@ -78,8 +78,11 @@ test('correct cache prefix is used in all contexts', function () {
|
|||
|
||||
$expectPrefixToBe($tenantTwoPrefix);
|
||||
|
||||
// Assert tenants' data is accessible using the prefix from the central context tenancy()->end();
|
||||
// Prefix gets reverted to default after ending tenancy
|
||||
tenancy()->end();
|
||||
$expectPrefixToBe($originalPrefix);
|
||||
|
||||
// Assert tenant's data is accessible using the prefix from the central context
|
||||
config(['cache.prefix' => null]); // stop prefixing cache keys in central so we can provide prefix manually
|
||||
app('cache')->forgetDriver(config('cache.default'));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue