It took me a while to figure it out, so here is how I solved it:
public function testEventListenerWasTriggered()
{
$listener = new FlashNotifier();
$listener->handleMenuItemWasStored();
$this->assertSessionHas('flash-status', 'success');
$this->assertSessionHas('flash-message', 'Item was stored.');
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community