Skip to content
This repository
Browse code

Merge pull request #385 from shama/patch-smtp-returnpath

Add returnPath to test on SmtpTransport
  • Loading branch information...
commit ca14583a0e50c4da8011e7d436928ca2ad05481a 2 parents 7339640 + c865016
ADmad authored December 22, 2011
2  lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php
@@ -214,6 +214,7 @@ public function testSendData() {
214 214
 		$this->getMock('CakeEmail', array('message'), array(), 'SmtpCakeEmail');
215 215
 		$email = new SmtpCakeEmail();
216 216
 		$email->from('noreply@cakephp.org', 'CakePHP Test');
  217
+		$email->returnPath('pleasereply@cakephp.org', 'CakePHP Return');
217 218
 		$email->to('cake@cakephp.org', 'CakePHP');
218 219
 		$email->cc(array('mark@cakephp.org' => 'Mark Story', 'juan@cakephp.org' => 'Juan Basso'));
219 220
 		$email->bcc('phpnut@cakephp.org');
@@ -222,6 +223,7 @@ public function testSendData() {
222 223
 		$email->expects($this->any())->method('message')->will($this->returnValue(array('First Line', 'Second Line', '')));
223 224
 
224 225
 		$data = "From: CakePHP Test <noreply@cakephp.org>\r\n";
  226
+		$data .= "Return-Path: CakePHP Return <pleasereply@cakephp.org>\r\n";
225 227
 		$data .= "To: CakePHP <cake@cakephp.org>\r\n";
226 228
 		$data .= "Cc: Mark Story <mark@cakephp.org>, Juan Basso <juan@cakephp.org>\r\n";
227 229
 		$data .= "X-Mailer: CakePHP Email\r\n";

0 notes on commit ca14583

Please sign in to comment.
Something went wrong with that request. Please try again.