Your Teacher | Jeffrey Way's avatar
Hi, I'm Jeffrey. I'm the creator of Laracasts and spend most of my days building the site and thinking of new ways to teach confusing concepts. I live in Orlando, Florida with my wife and two kids.

About This Episode

Published on Jan 20th, 2019

Let's take a moment to improve the structure of our tests. Have you noticed that, time and time again, we follow a similar pattern when arranging the world for a test? Instead, let's refactor this code into a fluent factory class to save time. To do this, we'll use a technique that I first learned from John Bonaccorsi in his Tidy up Your Tests with Class-Based Model Factories article. I encourage you to give it a read if you'd like to learn more.

View the source code for this episode on GitHub.


    1. Meet Birdboard

      Free Episode 2:31
    2. Let's Begin With a Test

      Free Episode 12:48
    3. Go Go Gadget Tailwind

      Free Episode 16:39
    4. Completed Themes Review

      Free Episode 2:15
Promote your business on Laracasts
Back to Series Button