Permalink
Browse files

Merge pull request #707 from SimonEast/fix_CakeEmailTest

Fix for CakeEmailTest.php that failed unless using 'localhost'
  • Loading branch information...
2 parents e10f6f5 + de703a2 commit ae01d473c365763c91394d52f734bd74f62aaa54 @markstory markstory committed Jul 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Test/Case/Network/Email/CakeEmailTest.php
@@ -1119,7 +1119,7 @@ public function testSendRenderWithImage() {
$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']);
}

0 comments on commit ae01d47

Please sign in to comment.