byos_laravel/tests/Feature/Console/FetchProxyCloudResponsesCommandTest.php
Benjamin Nussbaum b4b6286172
Some checks are pending
tests / ci (push) Waiting to run
refactor: apply rector
2025-09-24 20:35:48 +02:00

15 lines
411 B
PHP

<?php
use App\Jobs\FetchProxyCloudResponses;
use Illuminate\Support\Facades\Bus;
test('it dispatches fetch proxy cloud responses job', function (): void {
// Prevent the job from actually running
Bus::fake();
// Run the command
$this->artisan('trmnl:cloud:proxy')->assertSuccessful();
// Assert that the job was dispatched
Bus::assertDispatched(FetchProxyCloudResponses::class);
});