Queue Worker
NativePHP is currently in alpha development
Let's get to beta!#Fake Queue Worker
#Example test case
Copied!
1use Native\Laravel\Facades\QueueWorker; 2use Native\Laravel\DTOs\QueueConfig; 3 4#[\PHPUnit\Framework\Attributes\Test] 5public function example(): void 6{ 7 QueueWorker::fake(); 8 9 $this->get('/whatever-action');10 11 QueueWorker::assertUp(fn (QueueConfig $config) => $config->alias === 'custom');12}
#Available assertions
-
assertUp
-
assertDown