Skip to content

Commit 54a2d8a

Browse files
committed
tests: remove pointless cache TTLs
1 parent 4129b2d commit 54a2d8a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/Bootstrappers/CacheTagsBootstrapperTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,39 +56,39 @@
5656
$tenant1 = Tenant::create();
5757
tenancy()->initialize($tenant1);
5858

59-
cache()->put('foo', 'bar', 1);
59+
cache()->put('foo', 'bar');
6060
expect(cache()->get('foo'))->toBe('bar');
6161

6262
$tenant2 = Tenant::create();
6363
tenancy()->initialize($tenant2);
6464

6565
expect(cache('foo'))->not()->toBe('bar');
6666

67-
cache()->put('foo', 'xyz', 1);
67+
cache()->put('foo', 'xyz');
6868
expect(cache()->get('foo'))->toBe('xyz');
6969
});
7070

7171
test('invoking the cache helper works', function () {
7272
$tenant1 = Tenant::create();
7373
tenancy()->initialize($tenant1);
7474

75-
cache(['foo' => 'bar'], 1);
75+
cache(['foo' => 'bar']);
7676
expect(cache('foo'))->toBe('bar');
7777

7878
$tenant2 = Tenant::create();
7979
tenancy()->initialize($tenant2);
8080

8181
expect(cache('foo'))->not()->toBe('bar');
8282

83-
cache(['foo' => 'xyz'], 1);
83+
cache(['foo' => 'xyz']);
8484
expect(cache('foo'))->toBe('xyz');
8585
});
8686

8787
test('cache is persisted', function () {
8888
$tenant1 = Tenant::create();
8989
tenancy()->initialize($tenant1);
9090

91-
cache(['foo' => 'bar'], 10);
91+
cache(['foo' => 'bar']);
9292
expect(cache('foo'))->toBe('bar');
9393

9494
tenancy()->end();
@@ -102,7 +102,7 @@
102102
$tenant2 = Tenant::create();
103103
tenancy()->initialize($tenant1);
104104

105-
cache(['foo' => 'bar'], 10);
105+
cache(['foo' => 'bar']);
106106
expect(cache('foo'))->toBe('bar');
107107

108108
tenancy()->initialize($tenant2);

tests/GlobalCacheTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
expect(GlobalCache::get('foo'))->toBe('bar');
4747

4848
GlobalCache::put('abc', 'xyz');
49-
cache(['def' => 'ghi'], 10);
49+
cache(['def' => 'ghi']);
5050
expect(cache('def'))->toBe('ghi');
5151

5252
// different stores
@@ -70,7 +70,7 @@
7070
expect(GlobalCache::get('abc'))->toBe('xyz');
7171
expect(GlobalCache::get('foo'))->toBe('bar');
7272
expect(cache('def'))->toBe(null);
73-
cache(['def' => 'xxx'], 1);
73+
cache(['def' => 'xxx']);
7474
expect(cache('def'))->toBe('xxx');
7575

7676
tenancy()->initialize($tenant1);

0 commit comments

Comments
 (0)