Permalink
Browse files

Add returnPath to test on SmtpTransport

  • Loading branch information...
1 parent 7339640 commit c8650165bb8f87fabb745b9ccc8898046cc5893a @shama shama committed Dec 23, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php
@@ -214,6 +214,7 @@ public function testSendData() {
$this->getMock('CakeEmail', array('message'), array(), 'SmtpCakeEmail');
$email = new SmtpCakeEmail();
$email->from('noreply@cakephp.org', 'CakePHP Test');
+ $email->returnPath('pleasereply@cakephp.org', 'CakePHP Return');
$email->to('cake@cakephp.org', 'CakePHP');
$email->cc(array('mark@cakephp.org' => 'Mark Story', 'juan@cakephp.org' => 'Juan Basso'));
$email->bcc('phpnut@cakephp.org');
@@ -222,6 +223,7 @@ public function testSendData() {
$email->expects($this->any())->method('message')->will($this->returnValue(array('First Line', 'Second Line', '')));
$data = "From: CakePHP Test <noreply@cakephp.org>\r\n";
+ $data .= "Return-Path: CakePHP Return <pleasereply@cakephp.org>\r\n";
$data .= "To: CakePHP <cake@cakephp.org>\r\n";
$data .= "Cc: Mark Story <mark@cakephp.org>, Juan Basso <juan@cakephp.org>\r\n";
$data .= "X-Mailer: CakePHP Email\r\n";

0 comments on commit c865016

Please sign in to comment.