Skip to content

Commit

Permalink
Add returnPath to test on SmtpTransport
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Dec 23, 2011
1 parent 7339640 commit c865016
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php
Expand Up @@ -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');
Expand All @@ -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";
Expand Down

0 comments on commit c865016

Please sign in to comment.