From ce433845378d3b26ea84a273dc8afd52846a6aee Mon Sep 17 00:00:00 2001 From: lukinovec Date: Mon, 17 Apr 2023 14:54:45 +0200 Subject: [PATCH] Refactor assertions --- tests/CacheManagerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CacheManagerTest.php b/tests/CacheManagerTest.php index f0e8c2a1..744d81d2 100644 --- a/tests/CacheManagerTest.php +++ b/tests/CacheManagerTest.php @@ -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');