From 548c0e42f8d24700c8cb80eeacc8fbe2d7ab11d2 Mon Sep 17 00:00:00 2001 From: Mark van Eijk Date: Sun, 28 Apr 2024 10:38:00 +0200 Subject: [PATCH] wip --- .../ScheduledAndQueuedCachedComponentTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Unit/CachedComponent/ScheduledAndQueuedCachedComponentTest.php b/tests/Unit/CachedComponent/ScheduledAndQueuedCachedComponentTest.php index 3126ae2..22bdd61 100644 --- a/tests/Unit/CachedComponent/ScheduledAndQueuedCachedComponentTest.php +++ b/tests/Unit/CachedComponent/ScheduledAndQueuedCachedComponentTest.php @@ -1,16 +1,14 @@ clear(); + Queue::fake(); (fn () => $this->cachers = new \SplObjectStorage)->call(app(\Vormkracht10\PermanentCache\PermanentCache::class)); }); @@ -49,4 +47,8 @@ expect($events)->toHaveCount(1); expect($events->first()->expression)->toBe('* * * * *'); + + PermanentCache::update(); + + Queue::assertPushed(ScheduledAndQueuedCachedComponent::class); });