From 591022f182df42c10af7fb0f6bd1d045bf557b40 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 5 Jul 2012 22:56:45 -0400 Subject: [PATCH] Make test case use SERVER_NAME conditionally. --- lib/Cake/Test/Case/Network/Email/CakeEmailTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php b/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php index dbbf2025a..cde649558 100644 --- a/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php +++ b/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php @@ -1119,7 +1119,8 @@ class CakeEmailTest extends CakeTestCase { $this->CakeEmail->template('image'); $this->CakeEmail->emailFormat('html'); - $expected = 'cool image'; + $server = env('SERVER_NAME') ? env('SERVER_NAME') : 'localhost'; + $expected = 'cool image'; $result = $this->CakeEmail->send(); $this->assertContains($expected, $result['message']); }