From c8650165bb8f87fabb745b9ccc8898046cc5893a Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Thu, 22 Dec 2011 23:16:43 -0800 Subject: [PATCH] Add returnPath to test on SmtpTransport --- lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php b/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php index fca4b0029..cab826213 100644 --- a/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php +++ b/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php @@ -214,6 +214,7 @@ class SmtpTransportTest extends CakeTestCase { $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 @@ class SmtpTransportTest extends CakeTestCase { $email->expects($this->any())->method('message')->will($this->returnValue(array('First Line', 'Second Line', ''))); $data = "From: CakePHP Test \r\n"; + $data .= "Return-Path: CakePHP Return \r\n"; $data .= "To: CakePHP \r\n"; $data .= "Cc: Mark Story , Juan Basso \r\n"; $data .= "X-Mailer: CakePHP Email\r\n";