mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
This commit is contained in:
parent
a88e72b75e
commit
ba3bf31bb7
29 changed files with 2379 additions and 215 deletions
20
tests/Feature/FetchDeviceModelsCommandTest.php
Normal file
20
tests/Feature/FetchDeviceModelsCommandTest.php
Normal 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);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue