Laravel - Test if event was called/dispatched

https://laravel.com/docs/5.8/mocking#event-fake

To test if event was called use the Event::fake() function.
Also use it to prevent the event from continue running during tests and execute the event/listener code.

use Illuminate\Support\Facades\Event;
.
.
Event::fake();
.
.
Event::assertDispatched(ReceiptUploaded::class);