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:
chartjes 2007-06-27 15:20:45 +00:00
parent d1f6f2339e
commit 3755a14f54

View file

@ -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';