Exemple #1
0
 /**
  * @return void
  */
 public function testSendMailDataContainsCorrectTemplateNameAndContent()
 {
     $templateContent = ['Key1' => 'Value1', 'Key2' => 'Value2'];
     $mailTransfer = new MailTransfer();
     $mailTransfer->setTemplateContent($templateContent);
     $this->mandrillMock->messages->expects($this->once())->method('sendTemplate')->with($this->anything(), $this->equalTo([['name' => 'Key1', 'content' => 'Value1'], ['name' => 'Key2', 'content' => 'Value2']]), $this->anything(), $this->anything(), $this->anything(), $this->anything());
     $this->mailSender->sendMail($mailTransfer);
 }