About This Episode

In this lesson, we'll review how to take a hardcoded Redis reference in our controllers, and extract its logic to a first class citizen. Beyond improved readability, an immediate benefit to this refactor is that it allows us to construct custom fakes for our tests. If we'd prefer that a particular test not hit Redis, we can now do so quite easily.

Published on Aug 18th, 2017.

Episodes

    1. Intro to Application Testing

      EPISODE 1 8:29 Free
    2. Beginning Unit Testing

      EPISODE 2 13:09
    3. Testing Eloquent

      EPISODE 4 13:25
    4. Testing Collaborators

      EPISODE 6 18:14
    5. Homework Solutions

      EPISODE 7 12:28
    6. Regression Testing

      EPISODE 8 9:26
    7. PHPUnit Prophecies

      EPISODE 13 18:36 Free
    8. Bug Fixing Workflow

      EPISODE 14 9:45
    9. Homemade Fakes

      EPISODE 15 18:28
    10. Test Clarity

      EPISODE 16 13:11
Back to Series Button