Skip to content

Commit 29cae8b

Browse files
authored
Fix incorrect closure reference (#6980)
1 parent 02e5315 commit 29cae8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mocking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ If you would simply like to assert that an event listener is listening to a give
270270

271271
Event::assertListening(
272272
OrderShipped::class,
273-
[SendShipmentNotification::class, 'handle']
273+
SendShipmentNotification::class
274274
);
275275

276276
> {note} After calling `Event::fake()`, no event listeners will be executed. So, if your tests use model factories that rely on events, such as creating a UUID during a model's `creating` event, you should call `Event::fake()` **after** using your factories.

0 commit comments

Comments
 (0)