Merge pull request #707 from SimonEast/fix_CakeEmailTest

Fix for CakeEmailTest.php that failed unless using 'localhost'
This commit is contained in:
Mark Story 2012-07-05 19:40:54 -07:00
commit ae01d473c3

View file

@ -1119,7 +1119,7 @@ class CakeEmailTest extends CakeTestCase {
$this->CakeEmail->template('image');
$this->CakeEmail->emailFormat('html');
$expected = '<img src="http://localhost/img/image.gif" alt="cool image" width="100" height="100" />';
$expected = '<img src="http://' . env('SERVER_NAME') . '/img/image.gif" alt="cool image" width="100" height="100" />';
$result = $this->CakeEmail->send();
$this->assertContains($expected, $result['message']);
}