mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44:04 +00:00
Make CacheService a singleton in a test
This commit is contained in:
parent
b38aee0a6a
commit
5ea5299ed1
1 changed files with 2 additions and 0 deletions
|
|
@ -209,6 +209,8 @@ test('stores specified in tenantCacheStores get prefixed', function() {
|
|||
// Make the currently used store ('redis') the only store in $tenantCacheStores
|
||||
PrefixCacheTenancyBootstrapper::$tenantCacheStores = ['redis'];
|
||||
|
||||
$this->app->singleton(CacheService::class);
|
||||
|
||||
app()->make(CacheService::class)->handle();
|
||||
expect(cache('key'))->toBe($centralValue = 'central-value');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue