mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Added in test to make sure that an SMTP server is running on port 25 on localhost
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5354 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d1f6f2339e
commit
3755a14f54
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ class EmailTest extends CakeTestCase {
|
|||
}
|
||||
|
||||
function testSmtpSend() {
|
||||
$this->assertTrue(@fsockopen('localhost', 25));
|
||||
$this->Controller->Email->reset();
|
||||
$this->Controller->Email->to = 'chartjes@localhost';
|
||||
$this->Controller->Email->subject = 'Cake SMTP test';
|
||||
|
|
Loading…
Add table
Reference in a new issue