We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa18c13 commit 9e6cb65Copy full SHA for 9e6cb65
src/Illuminate/Support/Testing/Fakes/BatchFake.php
@@ -6,6 +6,7 @@
6
use Illuminate\Bus\Batch;
7
use Illuminate\Bus\UpdatedBatchJobCounts;
8
use Illuminate\Support\Carbon;
9
+use Illuminate\Support\Collection;
10
11
class BatchFake extends Batch
12
{
@@ -79,6 +80,8 @@ public function fresh()
79
80
*/
81
public function add($jobs)
82
83
+ $jobs = Collection::wrap($jobs);
84
+
85
foreach ($jobs as $job) {
86
$this->added[] = $job;
87
}
0 commit comments