[Mailer] Fix MandrillHttpTransport::getRecipients()'s call
This commit is contained in:
parent
c29989d69e
commit
f88d1bb328
@ -57,7 +57,7 @@ class MandrillHttpTransportTest extends TestCase
|
|||||||
$body = json_decode($options['body'], true);
|
$body = json_decode($options['body'], true);
|
||||||
$message = $body['raw_message'];
|
$message = $body['raw_message'];
|
||||||
$this->assertSame('KEY', $body['key']);
|
$this->assertSame('KEY', $body['key']);
|
||||||
$this->assertSame('Saif Eddin <saif.gmati@symfony.com>', $body['to'][0]);
|
$this->assertSame('saif.gmati@symfony.com', $body['to'][0]);
|
||||||
$this->assertSame('Fabien <fabpot@symfony.com>', $body['from_email']);
|
$this->assertSame('Fabien <fabpot@symfony.com>', $body['from_email']);
|
||||||
|
|
||||||
$this->assertStringContainsString('Subject: Hello!', $message);
|
$this->assertStringContainsString('Subject: Hello!', $message);
|
||||||
|
@ -47,7 +47,7 @@ class MandrillHttpTransport extends AbstractHttpTransport
|
|||||||
$response = $this->client->request('POST', 'https://'.$this->getEndpoint().'/api/1.0/messages/send-raw.json', [
|
$response = $this->client->request('POST', 'https://'.$this->getEndpoint().'/api/1.0/messages/send-raw.json', [
|
||||||
'json' => [
|
'json' => [
|
||||||
'key' => $this->key,
|
'key' => $this->key,
|
||||||
'to' => $this->getRecipients($envelope->getRecipients()),
|
'to' => $this->getRecipients($envelope),
|
||||||
'from_email' => $envelope->getSender()->toString(),
|
'from_email' => $envelope->getSender()->toString(),
|
||||||
'raw_message' => $message->toString(),
|
'raw_message' => $message->toString(),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user