NativePHP for Mobile v4 is here — build real native UIs from Blade with SuperNative

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#

  • assertUp
  • assertDown