mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44:04 +00:00
Refactor assertions
This commit is contained in:
parent
d84878bd45
commit
ce43384537
1 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ test('tags separate cache well enough', function () {
|
||||||
$tenant2 = Tenant::create();
|
$tenant2 = Tenant::create();
|
||||||
tenancy()->initialize($tenant2);
|
tenancy()->initialize($tenant2);
|
||||||
|
|
||||||
pest()->assertNotSame('bar', cache()->get('foo'));
|
expect(cache('foo'))->not()->toBe('bar');
|
||||||
|
|
||||||
cache()->put('foo', 'xyz', 1);
|
cache()->put('foo', 'xyz', 1);
|
||||||
expect(cache()->get('foo'))->toBe('xyz');
|
expect(cache()->get('foo'))->toBe('xyz');
|
||||||
|
|
@ -74,7 +74,7 @@ test('invoking the cache helper works', function () {
|
||||||
$tenant2 = Tenant::create();
|
$tenant2 = Tenant::create();
|
||||||
tenancy()->initialize($tenant2);
|
tenancy()->initialize($tenant2);
|
||||||
|
|
||||||
pest()->assertNotSame('bar', cache('foo'));
|
expect(cache('foo'))->not()->toBe('bar');
|
||||||
|
|
||||||
cache(['foo' => 'xyz'], 1);
|
cache(['foo' => 'xyz'], 1);
|
||||||
expect(cache('foo'))->toBe('xyz');
|
expect(cache('foo'))->toBe('xyz');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue