inertia-laravel icon indicating copy to clipboard operation
inertia-laravel copied to clipboard

add dumpInertia() testing method

Open JulienCauvin opened this issue 3 years ago • 0 comments
trafficstars

This pull request intent is to add a new dumpInertia(string $key = null) method to TestResponseMacros file. Existing testing methods like dump(), dumpSession(), dumpHeaders() are very convenient in Laravel testing.

If parameter is not set, then all of the Inertia data will be printed (component, props, url, version, ...). If parameter is set, then props property content will be printed (accepting dot-notation thanks to Arr:get())

JulienCauvin avatar Jul 22 '22 16:07 JulienCauvin