Laravel Testing: Assert View Data Without Parsing HTML
Originally published at recca0120.github.io
When dealing with complex pages in Laravel Feature Tests, testing HTML directly is painful. Instead, you can test just the data passed to the View.
Use viewData to Retrieve View Variables
$response->viewDat...
recca0120.hashnode.dev2 min read