From 3755a14f546e3a88b203d2552c0e5c4aff169bdc Mon Sep 17 00:00:00 2001 From: chartjes Date: Wed, 27 Jun 2007 15:20:45 +0000 Subject: [PATCH] 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 --- cake/tests/cases/libs/controller/components/email.test.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cake/tests/cases/libs/controller/components/email.test.php b/cake/tests/cases/libs/controller/components/email.test.php index 8fe7c1d82..ae140bd70 100644 --- a/cake/tests/cases/libs/controller/components/email.test.php +++ b/cake/tests/cases/libs/controller/components/email.test.php @@ -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';