Skip to content

Commit 8adf6b0

Browse files
committed
remove unnecessary check for existing request
1 parent 64342e6 commit 8adf6b0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Test/MailerAssertionsTrait.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ public static function getMailerMessage(int $index = 0, string $transport = null
118118

119119
private static function getMessageMailerEvents(): MessageEvents
120120
{
121-
if (!self::getClient()->getRequest()) {
122-
static::fail('Unable to make email assertions. Did you forget to make an HTTP request?');
123-
}
124-
125121
if (!self::$container->has('mailer.logger_message_listener')) {
126122
static::fail('A client must have Mailer enabled to make email assertions. Did you forget to require symfony/mailer?');
127123
}

0 commit comments

Comments
 (0)