diff --git a/src/Illuminate/Support/Testing/Fakes/BusFake.php b/src/Illuminate/Support/Testing/Fakes/BusFake.php index 9c7425b6eaaa..89250efef79b 100644 --- a/src/Illuminate/Support/Testing/Fakes/BusFake.php +++ b/src/Illuminate/Support/Testing/Fakes/BusFake.php @@ -867,4 +867,14 @@ public function map(array $map) return $this; } + + /** + * Get the batches that have been dispatched. + * + * @return array + */ + public function dispatchedBatches() + { + return $this->batches; + } }