Skip to content

Commit 7f36ae4

Browse files
committed
add fire to fake
1 parent fbe5152 commit 7f36ae4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,19 @@ public function flush($event)
154154
//
155155
}
156156

157+
/**
158+
* Fire an event and call the listeners.
159+
*
160+
* @param string|object $event
161+
* @param mixed $payload
162+
* @param bool $halt
163+
* @return array|null
164+
*/
165+
public function fire($event, $payload = [], $halt = false)
166+
{
167+
return $this->dispatch($event, $payload, $halt);
168+
}
169+
157170
/**
158171
* Fire an event and call the listeners.
159172
*

0 commit comments

Comments
 (0)