From 089d3fe9d796385e1c5a65af84708390e4eb16ba Mon Sep 17 00:00:00 2001 From: Albert Chen Date: Wed, 3 Jun 2026 20:58:04 +0800 Subject: [PATCH] fix: flush global state in queue's createPayloadCallbacks --- src/foundation/src/Testing/TestCase.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/foundation/src/Testing/TestCase.php b/src/foundation/src/Testing/TestCase.php index 24f8af7df..1e22c802e 100644 --- a/src/foundation/src/Testing/TestCase.php +++ b/src/foundation/src/Testing/TestCase.php @@ -15,6 +15,7 @@ use Hypervel\Foundation\Testing\Concerns\InteractsWithTime; use Hypervel\Foundation\Testing\Concerns\MakesHttpRequests; use Hypervel\Foundation\Testing\Concerns\MocksApplicationServices; +use Hypervel\Queue\Queue; use Hypervel\Support\Facades\Facade; use Mockery; use Throwable; @@ -123,6 +124,7 @@ protected function tearDown(): void $this->flushApplication(); /* @phpstan-ignore-next-line */ Coroutine::flushAfterCreated(); + Queue::createPayloadUsing(null); } $this->afterApplicationCreatedCallbacks = [];