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

CacheService class as singleton

This commit is contained in:
Abrar Ahmad 2022-12-01 14:58:13 +05:00
parent 222686ec1d
commit 6c955acd13
2 changed files with 3 additions and 1 deletions

View file

@ -122,6 +122,8 @@ test('cache base prefix is customizable', function () {
});
test('prefix separate cache well enough using CacheManager dependency injection', function () {
$this->app->singleton(CacheAction::class);
app()->make(CacheAction::class)->handle();
expect(cache('key'))->toBe('central-value');