Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 20, 2012
1 parent a1f64b9 commit fcb7714
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -850,7 +850,8 @@ public function testMessageId() {
$this->assertTrue($this->Controller->EmailTest->send('This is the body of the message'));
$result = DebugCompTransport::$lastEmail;

$this->assertRegExp('/Message-ID: \<[a-f0-9]{8}[a-f0-9]{4}[a-f0-9]{4}[a-f0-9]{4}[a-f0-9]{12}@' . env('HTTP_HOST') . '\>\n/', $result);
$host = env('HTTP_HOST') ? env('HTTP_HOST') : php_uname('n');
$this->assertRegExp('/Message-ID: \<[a-f0-9]{8}[a-f0-9]{4}[a-f0-9]{4}[a-f0-9]{4}[a-f0-9]{12}@' . $host . '\>\n/', $result);

$this->Controller->EmailTest->messageId = '<22091985.998877@example.com>';

Expand Down

0 comments on commit fcb7714

Please sign in to comment.