Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1eb80c

Browse files
[Mailer] fix merge of MailgunApiTransportTest
1 parent 8ace1c1 commit e1eb80c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Mailer/Bridge/Mailgun/Tests/Transport/MailgunApiTransportTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testCustomHeader()
6161
$deliveryTime = (new \DateTimeImmutable('2020-03-20 13:01:00'))->format(\DateTimeImmutable::RFC2822);
6262

6363
$email = new Email();
64-
$email->getHeaders()->addTextHeader('X-Mailgun-Variables', $json);
64+
$email->getHeaders()->addTextHeader('h:X-Mailgun-Variables', $json);
6565
$email->getHeaders()->addTextHeader('h:foo', 'foo-value');
6666
$email->getHeaders()->addTextHeader('t:text', 'text-value');
6767
$email->getHeaders()->addTextHeader('o:deliverytime', $deliveryTime);
@@ -104,7 +104,7 @@ public function testPrefixHeaderWithH()
104104
$deliveryTime = (new \DateTimeImmutable('2020-03-20 13:01:00'))->format(\DateTimeImmutable::RFC2822);
105105

106106
$email = new Email();
107-
$email->getHeaders()->addTextHeader('bar', 'bar-value');
107+
$email->getHeaders()->addTextHeader('h:bar', 'bar-value');
108108

109109
$envelope = new Envelope(new Address('[email protected]'), [new Address('[email protected]')]);
110110

@@ -176,15 +176,15 @@ public function testSendThrowsForErrorResponse()
176176
->text('Hello There!');
177177

178178
$this->expectException(HttpTransportException::class);
179-
$this->expectExceptionMessage('Unable to send an email: "i\'m a teapot" (code 418).');
179+
$this->expectExceptionMessage('Unable to send an email: i\'m a teapot (code 418).');
180180
$transport->send($mail);
181181
}
182182

183183
public function testTagAndMetadataHeaders()
184184
{
185185
$json = json_encode(['foo' => 'bar']);
186186
$email = new Email();
187-
$email->getHeaders()->addTextHeader('X-Mailgun-Variables', $json);
187+
$email->getHeaders()->addTextHeader('h:X-Mailgun-Variables', $json);
188188
$email->getHeaders()->add(new TagHeader('password-reset'));
189189
$email->getHeaders()->add(new MetadataHeader('Color', 'blue'));
190190
$email->getHeaders()->add(new MetadataHeader('Client-ID', '12345'));

0 commit comments

Comments
 (0)