Skip to content

Commit 8398929

Browse files
committed
Test
1 parent 9f7e8b3 commit 8398929

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/Jobs/Comparison/DispatchComparisonsJobTest.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Illuminate\Support\Facades\Bus;
66
use Illuminate\Support\Testing\Fakes\PendingBatchFake;
7+
use JustBetter\MagentoProducts\Models\MagentoProduct;
78
use JustBetter\MagentoStock\Jobs\Comparison\CompareStockJob;
89
use JustBetter\MagentoStock\Jobs\Comparison\DispatchComparisonsJob;
910
use JustBetter\MagentoStock\Models\Stock;
@@ -18,7 +19,16 @@ public function it_dispatches_comparisons(): void
1819
Bus::fake([CompareStockJob::class]);
1920

2021
Stock::query()->create([
21-
'sku' => '::sku::',
22+
'sku' => '::sku_1::',
23+
]);
24+
25+
Stock::query()->create([
26+
'sku' => '::sku_2::',
27+
]);
28+
29+
MagentoProduct::query()->create([
30+
'sku' => '::sku_1::',
31+
'exists_in_magento' => true,
2232
]);
2333

2434
DispatchComparisonsJob::dispatch();

0 commit comments

Comments
 (0)