mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
15 lines
411 B
PHP
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);
|
|
});
|