for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sfneal\Testing\Utils\Traits;
use Illuminate\Support\Facades\Event;
trait EventFaker
{
/**
* Setup Event faking.
*
* @return void
*/
protected function eventFaker(): void
// Enable event faking
Event::fake();
// Assert that no events were dispatched...
Event::assertNothingDispatched();
}