Jesse Schutt 1 minute read
March 21, 2019

Mocking Fluent Laravel Facade Chains

Have you ever needed to test that a chain of methods on a facade has the right parameters along each step?

Laravel offers a few different ways to test facades but the documentation doesn't cover testing individual calls within a fluent chain.

As is normally the case with Laravel, testing in this fashion is totally doable... I wrote about the process over on the Zaengle development blog!