/** * @return void */ public function testSendMailIsCalledWithRightIpPool() { $mailTransfer = new MailTransfer(); $mailTransfer->setIpPool('AnIpPool'); $this->mandrillMock->messages->expects($this->once())->method('sendTemplate')->with($this->anything(), $this->anything(), $this->anything(), $this->anything(), $this->equalTo('AnIpPool'), $this->anything()); $this->mailSender->sendMail($mailTransfer); }