diff --git a/tests/Bootstrappers/CacheTagsBootstrapperTest.php b/tests/Bootstrappers/CacheTagsBootstrapperTest.php index 660be1a7..f07a0f3f 100644 --- a/tests/Bootstrappers/CacheTagsBootstrapperTest.php +++ b/tests/Bootstrappers/CacheTagsBootstrapperTest.php @@ -56,7 +56,7 @@ test('tags separate cache properly', function () { $tenant1 = Tenant::create(); tenancy()->initialize($tenant1); - cache()->put('foo', 'bar', 1); + cache()->put('foo', 'bar'); expect(cache()->get('foo'))->toBe('bar'); $tenant2 = Tenant::create(); @@ -64,7 +64,7 @@ test('tags separate cache properly', function () { expect(cache('foo'))->not()->toBe('bar'); - cache()->put('foo', 'xyz', 1); + cache()->put('foo', 'xyz'); expect(cache()->get('foo'))->toBe('xyz'); }); @@ -72,7 +72,7 @@ test('invoking the cache helper works', function () { $tenant1 = Tenant::create(); tenancy()->initialize($tenant1); - cache(['foo' => 'bar'], 1); + cache(['foo' => 'bar']); expect(cache('foo'))->toBe('bar'); $tenant2 = Tenant::create(); @@ -80,7 +80,7 @@ test('invoking the cache helper works', function () { expect(cache('foo'))->not()->toBe('bar'); - cache(['foo' => 'xyz'], 1); + cache(['foo' => 'xyz']); expect(cache('foo'))->toBe('xyz'); }); @@ -88,7 +88,7 @@ test('cache is persisted', function () { $tenant1 = Tenant::create(); tenancy()->initialize($tenant1); - cache(['foo' => 'bar'], 10); + cache(['foo' => 'bar']); expect(cache('foo'))->toBe('bar'); tenancy()->end(); @@ -102,7 +102,7 @@ test('cache is persisted when reidentification is used', function () { $tenant2 = Tenant::create(); tenancy()->initialize($tenant1); - cache(['foo' => 'bar'], 10); + cache(['foo' => 'bar']); expect(cache('foo'))->toBe('bar'); tenancy()->initialize($tenant2); diff --git a/tests/GlobalCacheTest.php b/tests/GlobalCacheTest.php index 44d6c2e9..016ad2a4 100644 --- a/tests/GlobalCacheTest.php +++ b/tests/GlobalCacheTest.php @@ -46,7 +46,7 @@ test('global cache manager stores data in global cache', function (string $store expect(GlobalCache::get('foo'))->toBe('bar'); GlobalCache::put('abc', 'xyz'); - cache(['def' => 'ghi'], 10); + cache(['def' => 'ghi']); expect(cache('def'))->toBe('ghi'); // different stores @@ -70,7 +70,7 @@ test('global cache manager stores data in global cache', function (string $store expect(GlobalCache::get('abc'))->toBe('xyz'); expect(GlobalCache::get('foo'))->toBe('bar'); expect(cache('def'))->toBe(null); - cache(['def' => 'xxx'], 1); + cache(['def' => 'xxx']); expect(cache('def'))->toBe('xxx'); tenancy()->initialize($tenant1);