yield 'subscribe with no correct validation' =>
[ [ 'email' => 'test@example.com',
'option' => 'direct',
'firstName' => 'Y http://localhost',
'lastName' => 'Tran http://localhost',
],
['firstName' => 'Y http://localhost', 'lastName' => 'Tran http://localhost'
],
[ new NotBlank(),
new Regex([ 'pattern' => NewsletterSubscribeRoute::DOMAIN_NAME_REGEX,
'match' => false,
]),
],
];
yield 'subscribe correct is validation' =>
[ [ 'email' => 'test@example.com',
'option' => 'direct',
'firstName' => 'Y',