mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixed tests related with emails.
This commit is contained in:
parent
24fbaafe01
commit
7a13856e69
2 changed files with 2 additions and 2 deletions
|
@ -339,7 +339,6 @@ class ComponentTest extends CakeTestCase {
|
|||
|
||||
$this->assertInstanceOf('SomethingWithEmailComponent', $Controller->SomethingWithEmail);
|
||||
$this->assertInstanceOf('EmailComponent', $Controller->SomethingWithEmail->Email);
|
||||
$this->assertInstanceOf('ComponentTestController', $Controller->SomethingWithEmail->Email->Controller);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -225,10 +225,11 @@ class StmpProtocolTest extends CakeTestCase {
|
|||
$data .= "To: CakePHP <cake@cakephp.org>\r\n";
|
||||
$data .= "Cc: Mark Story <mark@cakephp.org>, Juan Basso <juan@cakephp.org>\r\n";
|
||||
$data .= "Bcc: phpnut@cakephp.org\r\n";
|
||||
$data .= "X-Mailer: CakePHP Email Component\r\n";
|
||||
$data .= "X-Mailer: CakePHP Email\r\n";
|
||||
$data .= "Date: " . date(DATE_RFC2822) . "\r\n";
|
||||
$data .= "Message-ID: <4d9946cf-0a44-4907-88fe-1d0ccbdd56cb@localhost>\r\n";
|
||||
$data .= "Subject: Testing SMTP\r\n";
|
||||
$data .= "MIME-Version: 1.0\r\n";
|
||||
$data .= "Content-Type: text/plain; charset=UTF-8\r\n";
|
||||
$data .= "Content-Transfer-Encoding: 7bit\r\n";
|
||||
$data .= "\r\n";
|
||||
|
|
Loading…
Reference in a new issue