mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Merge pull request #707 from SimonEast/fix_CakeEmailTest
Fix for CakeEmailTest.php that failed unless using 'localhost'
This commit is contained in:
commit
ae01d473c3
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue