mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 02:44:02 +00:00
Add re-initialization cache assertion
This commit is contained in:
parent
bd41ae4fe5
commit
90684a7d92
1 changed files with 3 additions and 0 deletions
|
|
@ -126,6 +126,9 @@ test('prefixing separates the cache', function () {
|
||||||
|
|
||||||
cache()->put('foo', 'xyz');
|
cache()->put('foo', 'xyz');
|
||||||
expect(cache()->get('foo'))->toBe('xyz');
|
expect(cache()->get('foo'))->toBe('xyz');
|
||||||
|
|
||||||
|
tenancy()->initialize($tenant1);
|
||||||
|
expect(cache()->get('foo'))->toBe('bar');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('central cache is persisted', function () {
|
test('central cache is persisted', function () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue