mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Merge pull request #385 from shama/patch-smtp-returnpath
Add returnPath to test on SmtpTransport
This commit is contained in:
commit
ca14583a0e
1 changed files with 2 additions and 0 deletions
|
@ -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 <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";
|
||||
|
|
Loading…
Add table
Reference in a new issue