Add event fake documentation for times dispatched
This commit is contained in:
parent
bb89843dcc
commit
1878c502c1
|
@ -79,6 +79,10 @@ As an alternative to mocking, you may use the `Event` facade's `fake` method to
|
|||
return $e->order->id === $order->id;
|
||||
});
|
||||
|
||||
// Assert an event was dispatched twice...
|
||||
Event::assertDispatched(OrderShipped::class, 2);
|
||||
|
||||
// Assert an event was not dispatched...
|
||||
Event::assertNotDispatched(OrderFailedToShip::class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue