File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 44
55use Illuminate \Contracts \Queue \ShouldQueue ;
66use Illuminate \Foundation \Bus \Dispatchable ;
7+ use Illuminate \Queue \InteractsWithQueue ;
78use Maatwebsite \Excel \Concerns \WithMultipleSheets ;
89use Maatwebsite \Excel \Exceptions \NoSheetsFoundException ;
910use Maatwebsite \Excel \Files \TemporaryFile ;
1314
1415class QueueExport implements ShouldQueue
1516{
16- use ExtendedQueueable, Dispatchable;
17+ use ExtendedQueueable, Dispatchable, InteractsWithQueue ;
1718
1819 /**
1920 * @var object
Original file line number Diff line number Diff line change 66use Maatwebsite \Excel \Jobs \AppendDataToSheet ;
77use Maatwebsite \Excel \Jobs \AppendQueryToSheet ;
88use Maatwebsite \Excel \Jobs \AppendViewToSheet ;
9+ use Maatwebsite \Excel \Jobs \QueueExport ;
910use Maatwebsite \Excel \Jobs \ReadChunk ;
1011
1112class InteractsWithQueueTest extends TestCase
@@ -37,4 +38,9 @@ public function test_append_view_to_sheet_job_can_interact_with_queue()
3738 {
3839 $ this ->assertContains (InteractsWithQueue::class, class_uses (AppendViewToSheet::class));
3940 }
41+
42+ public function test_queue_export_job_can_interact_with_queue ()
43+ {
44+ $ this ->assertContains (InteractsWithQueue::class, class_uses (QueueExport::class));
45+ }
4046}
You can’t perform that action at this time.
0 commit comments