From 9d94d4b63d898e46ccff9bcc5300fad835a5558f Mon Sep 17 00:00:00 2001 From: Theraloss Date: Tue, 12 Jan 2021 19:52:01 +0100 Subject: [PATCH] [8.x] Add Event::assertNothingDispatched to mocking.md (#6738) * Add Event::assertNothingDispatched to mocking.md * Update mocking.md Co-authored-by: Taylor Otwell --- mocking.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mocking.md b/mocking.md index f275ba09c4..1ca5771507 100644 --- a/mocking.md +++ b/mocking.md @@ -222,7 +222,7 @@ The `Bus` facade's `assertBatched` method may be used to assert that a [batch of ## Event Fake -When testing code that dispatches events, you may wish to instruct Laravel to not actually execute the event's listeners. Using the `Event` facade's `fake` method, you may prevent listeners from executing, execute the code under test, and then assert which events were dispatched by your application using the `assertDispatched` and `assertNotDispatched` methods: +When testing code that dispatches events, you may wish to instruct Laravel to not actually execute the event's listeners. Using the `Event` facade's `fake` method, you may prevent listeners from executing, execute the code under test, and then assert which events were dispatched by your application using the `assertDispatched`, `assertNotDispatched`, and `assertNothingDispatched` methods: