1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 19:14:04 +00:00

Add re-initialization cache assertion

This commit is contained in:
lukinovec 2023-04-17 15:10:06 +02:00
parent bd41ae4fe5
commit 90684a7d92

View file

@ -126,6 +126,9 @@ test('prefixing separates the cache', function () {
cache()->put('foo', 'xyz');
expect(cache()->get('foo'))->toBe('xyz');
tenancy()->initialize($tenant1);
expect(cache()->get('foo'))->toBe('bar');
});
test('central cache is persisted', function () {