You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just complementing... lets supose I want to include the view in image below, but somehow the conditional that loads it returned false and this behaviour impacts the user navigation in the site, I must assert it got included in tests right?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am learning testing in laravel with PHPUnit and I faced this problem, how can I check that some view was loaded in the response?
I know I can see the last view name that was loaded with
assertViewIs()
, but if I want to ensure another view was included inside it.For example:
In the debugbar I can see a list of views that was loaded, how can I assure on of it was loaded in my tests?
I've also founded this gist, but its too old.
Just complementing... lets supose I want to include the view in image below, but somehow the conditional that loads it returned false and this behaviour impacts the user navigation in the site, I must assert it got included in tests right?
Beta Was this translation helpful? Give feedback.
All reactions