/** * @return Mandrill */ public function getMandrillClient() { if (!$this->mandrillClient) { $this->mandrillClient = new ClientMandrill($this->options->getApikey()); } return $this->mandrillClient; }
protected function setUp() { $transport = new Mandrill(); $options = new MandrillOptions(); $options->setApikey('test'); $transport->setOptions($options); $this->mandrill = $transport; }
public function testSetSubAccount() { $this->mandrillOptions->setSubAccount('another-subaccount'); $this->assertEquals('another-subaccount', $this->mandrillOptions->getSubAccount()); }