8000 bug #38095 [Mailer] Remove unnecessary check for existing request (j… · symfony/symfony@fff8c00 · GitHub
[go: up one dir, main page]

Skip to content

Commit fff8c00

Browse files
committed
bug #38095 [Mailer] Remove unnecessary check for existing request (jschaedl)
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] Remove unnecessary check for existing request | Q | A | ------------- | --- | Branch? | 4.4 <!-- see below --> | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #38035 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | - <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch master. --> Commits ------- 3feff72 remove unnecessary check for existing request
2 parents 2248fa5 + 3feff72 commit fff8c00

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Bundle/FrameworkBundle/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)
0