Skip to content

Commit a3de49d

Browse files
committed
wip
1 parent 7901557 commit a3de49d

File tree

2 files changed

+3
-32
lines changed

2 files changed

+3
-32
lines changed

app/Console/Commands/SyncArticleImages.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

tests/Integration/Commands/SyncArticleImagesTest.php renamed to tests/Integration/Jobs/SyncArticleImageTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
use App\Console\Commands\SyncArticleImages;
3+
use App\Jobs\SyncArticleImage;
44
use App\Models\Article;
55
use Illuminate\Foundation\Testing\DatabaseMigrations;
66
use Illuminate\Support\Facades\Config;
@@ -36,7 +36,7 @@
3636
'approved_at' => now(),
3737
]);
3838

39-
(new SyncArticleImages)->handle();
39+
SyncArticleImage::dispatchSync($article);
4040

4141
$article->refresh();
4242

@@ -53,7 +53,7 @@
5353
'approved_at' => now(),
5454
]);
5555

56-
(new SyncArticleImages)->handle();
56+
SyncArticleImage::dispatchSync($article);
5757

5858
$article->refresh();
5959

0 commit comments

Comments
 (0)