1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 18:44:03 +00:00
This commit is contained in:
lukinovec 2023-02-01 11:51:28 +01:00
parent 9ed7308754
commit c3e3a33ed0

View file

@ -78,8 +78,11 @@ test('correct cache prefix is used in all contexts', function () {
$expectPrefixToBe($tenantTwoPrefix); $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 config(['cache.prefix' => null]); // stop prefixing cache keys in central so we can provide prefix manually
app('cache')->forgetDriver(config('cache.default')); app('cache')->forgetDriver(config('cache.default'));