Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for CakeEmailTest.php that failed unless using 'localhost'
  • Loading branch information
Simon East committed Jul 6, 2012
1 parent e61f636 commit de703a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Network/Email/CakeEmailTest.php
Expand Up @@ -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']);
}
Expand Down

0 comments on commit de703a2

Please sign in to comment.