<?php

namespace Tests\Feature\Commands;

use App\Console\Commands\SyncVehicles;
use App\Jobs\RunScheduledSyncTask;
use Tests\DatabaseTestCase;
use Illuminate\Support\Facades\Bus;

class SyncVehiclesCommandTest extends DatabaseTestCase
{
    public function testSyncVehicles()
    {
        Bus::fake();
        $this->artisan(SyncVehicles::class)->assertExitCode(0);
        Bus::assertDispatched(RunScheduledSyncTask::class);
    }
}
