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); });