diff --git a/src/Illuminate/Support/Testing/Fakes/EventFake.php b/src/Illuminate/Support/Testing/Fakes/EventFake.php index 4a4fc7c5b22d..e6b956eb8572 100644 --- a/src/Illuminate/Support/Testing/Fakes/EventFake.php +++ b/src/Illuminate/Support/Testing/Fakes/EventFake.php @@ -404,6 +404,16 @@ public function until($event, $payload = []) return $this->dispatch($event, $payload, true); } + /** + * Get the events that have been dispatched. + * + * @return array + */ + public function dispatchedEvents() + { + return $this->events; + } + /** * Handle dynamic method calls to the dispatcher. *