samedi 10 juillet 2021

Test Variables Passed To View In Laravel

Is it possible to test the value of variables that are passed to a view when using the TestCase class for testing in Laravel?

I know we can test the content of the HTML, but there are instances where the contents of the variables passed to the view are more important than the view itself.

The variables are being passed from the controller to the view using

return view('user_list', compact('user_list', 'timezone', 'roles', 'countingArray', 'billingDate'));



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire