I'm brand new to phpunit testing. Can anyone help me on how to test the lines below in the image.

So far my test is:
public function testCanSendEmail()
{
$formData = array(
'subject' => 'test subject',
'email' => '[email protected]',
'message' => 'test message',
'name' => 'test name');
$this->request
->setMethod('POST')
->setPost($formData);
$this->dispatch('/contact');
$this->assertAction('win');
I was under the impression that if the validation succeeded it would follow through the whole action? Can anyone please explain what is happening here, and also what a correct test would be for such an action.