Your Teacher | Jeffrey Way

https://laracasts.s3.amazonaws.com/avatars/jeffrey-avatar.jpg'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

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.

Published on Jan 20th, 2019.

Episodes

    1. EPISODE 1 2:31 Free
    2. EPISODE 2 12:48 Free
    3. EPISODE 4 7:33
    4. EPISODE 6 11:39
    5. EPISODE 9 16:39 Free
    6. EPISODE 13 9:11
    7. EPISODE 14 18:31
    8. EPISODE 15 5:05
    9. EPISODE 16 18:04
    10. EPISODE 18 14:06
    11. EPISODE 20 13:39
    12. EPISODE 26 15:49
    13. EPISODE 31 14:08
    14. EPISODE 37 2:15 Free
    15. EPISODE 38 15:07
    16. EPISODE 39 12:20
    17. EPISODE 44 1:37
Understand.io logo
Laravel Error Tracking (AD)

Understand.io is used by hundreds of Laravel developers to find and fix errors.

Sign up for a free 14-day trial now.

Back to Series Button