The Only JSON Assertion You'll Ever Need

Laravel provides a few different ways to make assertions about JSON responses, but the one I like the most often goes unnoticed.

In this screencast (taken from my Test-Driven Laravel course), I walk through how the different JSON assertions work, and why you should give seeJsonSubset a spin.

Trying to wrap your head around testing? Test-Driven Laravel is a course I recently launched that teaches you how to TDD an app from start to finish. Learn more about it here.