Merge branch '2013.03' into 2013.10
[tine20] / tests / tine20 / Felamimail / Controller / MessageTest.php
index 587b1b9..b1dd08d 100644 (file)
@@ -1140,12 +1140,14 @@ class Felamimail_Controller_MessageTest extends PHPUnit_Framework_TestCase
         $attachment->charset     = 'ISO-8859-1';
         $attachment->filename    = 'attach.eml';
         $attachment->disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
-                
+        
         $mail->addAttachment($attachment);
         
         $smtpConfig = $this->_account->getSmtpConfig();
         $transport = new Felamimail_Transport($smtpConfig['hostname'], $smtpConfig);
+        Zend_Mail_Protocol_Abstract::$loggingEnabled = true;
         $mail->send($transport);
+        Zend_Mail_Protocol_Abstract::$loggingEnabled = false;
         
         $smtpLog = $transport->getConnection()->getLog();