remove unnecessary check for existing request

This commit is contained in:
Jan Schädlich 2020-09-07 17:24:28 +02:00
parent 2248fa5fbd
commit 3feff72186

View File

@ -118,10 +118,6 @@ trait MailerAssertionsTrait
private static function getMessageMailerEvents(): MessageEvents
{
if (!self::getClient()->getRequest()) {
static::fail('Unable to make email assertions. Did you forget to make an HTTP request?');
}
if (!self::$container->has('mailer.logger_message_listener')) {
static::fail('A client must have Mailer enabled to make email assertions. Did you forget to require symfony/mailer?');
}