Skip to content

Commit 04cfdb4

Browse files
authored
Increment the totalJobs property for the BatchFake when add some jobs (#51742)
1 parent ae0bc31 commit 04cfdb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Support/Testing/Fakes/BatchFake.php

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ public function add($jobs)
8686
$this->added[] = $job;
8787
}
8888

89+
$this->totalJobs += $jobs->count();
90+
8991
return $this;
9092
}
9193

0 commit comments

Comments
 (0)