/** * @return void */ public function testSendMailContainsPreserveRecipients() { $mailTransfer = new MailTransfer(); $mailTransfer->setPreserveRecipients(true); $this->mandrillMock->messages->expects($this->once())->method('sendTemplate')->with($this->anything(), $this->anything(), $this->arrayContainsKeyEqualTo('preserve_recipients', true), $this->anything(), $this->anything(), $this->anything()); $this->mailSender->sendMail($mailTransfer); }