コード例 #1
0
ファイル: Mandrill.php プロジェクト: ripaclub/zf2-mailman
 /**
  * @return Mandrill
  */
 public function getMandrillClient()
 {
     if (!$this->mandrillClient) {
         $this->mandrillClient = new ClientMandrill($this->options->getApikey());
     }
     return $this->mandrillClient;
 }
コード例 #2
0
ファイル: MandrillTest.php プロジェクト: ripaclub/zf2-mailman
 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());
 }