Skip to content

Commit 21063b6

Browse files
committed
Fix
1 parent 1fc666f commit 21063b6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Symfony/Component/Mailer/Bridge/Sendgrid/CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
CHANGELOG
22
=========
33

4-
6.1
4+
6.2
55
---
66

7-
* Check the `Envelope` options for a "mail_settings" property and send the
8-
value in the payload to Sendgrid
7+
* The Sendgrid API transport now adds the `Envelope`'s options to the payload
98

109
5.4
1110
---

src/Symfony/Component/Mailer/Tests/EnvelopeTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ public function testFromRawMessages()
147147

148148
public function testSettingOptions()
149149
{
150-
$message = $this->getMockBuilder(Message::class)->getMock();
151-
$e = Envelope::create($message);
150+
$e = Envelope::create(new Message());
152151
$e->setOption('setting_name1', 'setting_value1');
153152
$e->setOption('setting_name2', 'setting_value2');
154153
$this->assertEquals(['setting_name1' => 'setting_value1', 'setting_name2' => 'setting_value2'], $e->getOptions());

0 commit comments

Comments
 (0)