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

Assert that cache is null from the beginning

This commit is contained in:
lukinovec 2023-04-17 15:11:30 +02:00
parent 90684a7d92
commit 9925e49112

View file

@ -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 () {
$this->app->singleton(CacheService::class);
expect(cache('key'))->toBeNull();
$this->app->make(CacheService::class)->handle();
expect(cache('key'))->toBe('central-value');