From 90684a7d92064bd7abbbdd2e75026dfc330db159 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Mon, 17 Apr 2023 15:10:06 +0200 Subject: [PATCH] Add re-initialization cache assertion --- tests/PrefixCacheBootstrapperTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/PrefixCacheBootstrapperTest.php b/tests/PrefixCacheBootstrapperTest.php index 3869d0b0..933c73da 100644 --- a/tests/PrefixCacheBootstrapperTest.php +++ b/tests/PrefixCacheBootstrapperTest.php @@ -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 () {