feat: adapt device models api
Some checks are pending
tests / ci (push) Waiting to run

This commit is contained in:
Benjamin Nussbaum 2025-08-16 09:41:00 +02:00
parent a88e72b75e
commit ba3bf31bb7
29 changed files with 2379 additions and 215 deletions

View file

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
use App\Jobs\FetchDeviceModelsJob;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Queue;
uses(RefreshDatabase::class);
test('command dispatches fetch device models job', function () {
Queue::fake();
$this->artisan('device-models:fetch')
->expectsOutput('Dispatching FetchDeviceModelsJob...')
->expectsOutput('FetchDeviceModelsJob has been dispatched successfully.')
->assertExitCode(0);
Queue::assertPushed(FetchDeviceModelsJob::class);
});