mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 16:14:02 +00:00
Assert that cache is null from the beginning
This commit is contained in:
parent
90684a7d92
commit
9925e49112
1 changed files with 2 additions and 0 deletions
|
|
@ -168,6 +168,8 @@ test('cache base prefix is customizable', function () {
|
||||||
test('cache is prefixed correctly when using a repository injected in a singleton', function () {
|
test('cache is prefixed correctly when using a repository injected in a singleton', function () {
|
||||||
$this->app->singleton(CacheService::class);
|
$this->app->singleton(CacheService::class);
|
||||||
|
|
||||||
|
expect(cache('key'))->toBeNull();
|
||||||
|
|
||||||
$this->app->make(CacheService::class)->handle();
|
$this->app->make(CacheService::class)->handle();
|
||||||
|
|
||||||
expect(cache('key'))->toBe('central-value');
|
expect(cache('key'))->toBe('central-value');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue