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

Refactor assertions

This commit is contained in:
lukinovec 2023-04-17 14:54:45 +02:00
parent d84878bd45
commit ce43384537

View file

@ -58,7 +58,7 @@ test('tags separate cache well enough', function () {
$tenant2 = Tenant::create();
tenancy()->initialize($tenant2);
pest()->assertNotSame('bar', cache()->get('foo'));
expect(cache('foo'))->not()->toBe('bar');
cache()->put('foo', 'xyz', 1);
expect(cache()->get('foo'))->toBe('xyz');
@ -74,7 +74,7 @@ test('invoking the cache helper works', function () {
$tenant2 = Tenant::create();
tenancy()->initialize($tenant2);
pest()->assertNotSame('bar', cache('foo'));
expect(cache('foo'))->not()->toBe('bar');
cache(['foo' => 'xyz'], 1);
expect(cache('foo'))->toBe('xyz');