Buy your loved one the ultimate gift. Lifetime gift certificates are $100 off.

Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On May. 25th 2017

Let's Build A Forum with Laravel and TDD: Notification Fakes in a Nutshell

Episode 47 Run Time 5:20

Download

If you check our ThreadTest class, you'll notice that we don't yet have a test that asserts that, each time a reply is added to a thread, a notification should be prepared for all thread subscribers. Let's use a notification fake to test this functionality.

Review the source code for this episode on GitHub.