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