How can I test that I get this message:
public function doSomething()
{
if($ok){
return view('message-page')
->with('title','The message?')
}
}
My test just looks like this:
$foo->doSomething();
What can I assert to check the message that is passed to the view?
Aucun commentaire:
Enregistrer un commentaire