Queue Worker
Fake Queue Worker#
Example test case#
Copied!
use Native\Desktop\Facades\QueueWorker;use Native\Desktop\DTOs\QueueConfig; #[\PHPUnit\Framework\Attributes\Test]public function example(): void{ QueueWorker::fake(); $this->get('/whatever-action'); QueueWorker::assertUp(fn (QueueConfig $config) => $config->alias === 'custom');}
Available assertions#
assertUpassertDown