Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7167324

Browse filesBrowse files
committed
minor #43053 [Mailer] [Sendgrid] Fix test (chalasr)
This PR was merged into the 5.4 branch. Discussion ---------- [Mailer] [Sendgrid] Fix test | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - low-deps build is broken after #43018 because it uses symfony/mailer 4.4.x while `TagHeader` is 5.x only. Commits ------- 375e95a [Mailer][Sendgrid] Fix test
2 parents c0bf036 + 375e95a commit 7167324
Copy full SHA for 7167324

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎src/Symfony/Component/Mailer/Bridge/Sendgrid/Tests/Transport/SendgridApiTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mailer/Bridge/Sendgrid/Tests/Transport/SendgridApiTransportTest.php
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ public function testEnvelopeSenderAndRecipients()
227227

228228
public function testTagAndMetadataHeaders()
229229
{
230+
if (!class_exists(TagHeader::class)) {
231+
$this->markTestSkipped('This test requires symfony/mailer 5.1 or higher.');
232+
}
233+
230234
$email = new Email();
231235
$email->getHeaders()->add(new TagHeader('category-one'));
232236
$email->getHeaders()->add(new MetadataHeader('Color', 'blue'));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.