Event Fakery

Let’s drop down a level and write a test to ensure that, when experience is awarded to a user, an announcement (or event) is made to the rest of our application. Later, we’ll listen for this announcement and grant any necessary achievement badges to the user.
Source: Laracasts