Skip to content

Commit d70250e

Browse files
authored
fix: missing InteractsWithQueue trait in QueueExport class (#4314)
1 parent 4ef7467 commit d70250e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/Jobs/QueueExport.php

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

55
use Illuminate\Contracts\Queue\ShouldQueue;
66
use Illuminate\Foundation\Bus\Dispatchable;
7+
use Illuminate\Queue\InteractsWithQueue;
78
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
89
use Maatwebsite\Excel\Exceptions\NoSheetsFoundException;
910
use Maatwebsite\Excel\Files\TemporaryFile;
@@ -13,7 +14,7 @@
1314

1415
class QueueExport implements ShouldQueue
1516
{
16-
use ExtendedQueueable, Dispatchable;
17+
use ExtendedQueueable, Dispatchable, InteractsWithQueue;
1718

1819
/**
1920
* @var object

tests/InteractsWithQueueTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Maatwebsite\Excel\Jobs\AppendDataToSheet;
77
use Maatwebsite\Excel\Jobs\AppendQueryToSheet;
88
use Maatwebsite\Excel\Jobs\AppendViewToSheet;
9+
use Maatwebsite\Excel\Jobs\QueueExport;
910
use Maatwebsite\Excel\Jobs\ReadChunk;
1011

1112
class 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
}

0 commit comments

Comments
 (0)