In the test suite of your application you probably also want to write some tests to check if an aggregate works correctly. The package contains some handy methods to help you.
Imagine you have an AccountAggregateRoot that handles adding and subtract an amount for a bank account. The account has a limit of -$5000.
The given and assertRecorded methods can accept a single event instances or an array with event instances. assertNotRecorded can also accept an array of class names.
If you don't expect any events to be recorded you can use assertNothingRecorded.
When calling the given method the aggregate will fire of events for your projector and reactor to react to. If you don't want events being dispatched. Simply use the Event facade's fake method before your test executes.
\Illuminate\Support\Facades\Event::fake();
If you would prefer to disable Projectors reacting to events whilst retaining Event functionality simply use the Projectionist facade's withoutEventHandlers method before your test executes.