/** * @return void */ public function testSendMailIsCalledWithRightIpSendAt() { $mailTransfer = new MailTransfer(); $mailTransfer->setSendAt('2014-10-11 10:00:00'); $this->mandrillMock->messages->expects($this->once())->method('sendTemplate')->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), $this->anything(), $this->equalTo('2014-10-11 10:00:00')); $this->mailSender->sendMail($mailTransfer); }