Skip to content

Commit

Permalink
Fix test I forgot to fix in b8fa7ce
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 14, 2014
1 parent b8fa7ce commit 66e733f
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -272,20 +272,17 @@ public function testTemplates() {
$this->assertTextEquals($expected, DebugCompTransport::$lastEmail);

$this->Controller->EmailTest->sendAs = 'both';
$expected = str_replace('{CONTENTTYPE}', 'multipart/mixed; boundary="{boundary}"', $header);
$expected = str_replace('{CONTENTTYPE}', 'multipart/alternative; boundary="{boundary}"', $header);
$expected .= "--{boundary}\n" .
'Content-Type: multipart/alternative; boundary="alt-{boundary}"' . "\n\n" .
'--alt-{boundary}' . "\n" .
'Content-Type: text/plain; charset=UTF-8' . "\n" .
'Content-Transfer-Encoding: 8bit' . "\n\n" .
$text .
"\n\n" .
'--alt-{boundary}' . "\n" .
'--{boundary}' . "\n" .
'Content-Type: text/html; charset=UTF-8' . "\n" .
'Content-Transfer-Encoding: 8bit' . "\n\n" .
$html .
"\n\n" .
'--alt-{boundary}--' . "\n\n\n" .
"\n\n\n" .
'--{boundary}--' . "\n";

$expected = '<pre>' . $expected . '</pre>';
Expand Down

0 comments on commit 66e733f

Please sign in to comment.