Permalink
Browse files

Fix for CakeEmailTest.php that failed unless using 'localhost'

  • Loading branch information...
Simon East
Simon East committed Jul 6, 2012
1 parent e61f636 commit de703a26923a4f17db3a2cae91c437784de5be08
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 de703a2

Please sign in to comment.