1 mail.test BackdropHtmlToTextTestCase::testBackdropHtmltoTextCollapsesWhitespace()

Test that whitespace is collapsed.

File

core/modules/simpletest/tests/mail.test, line 285
Test the Backdrop mailing system.

Class

BackdropHtmlToTextTestCase
Unit tests for backdrop_html_to_text().

Code

function testBackdropHtmltoTextCollapsesWhitespace() {
  $input = "<p>Backdrop  Backdrop\n\nBackdrop<pre>Backdrop  Backdrop\n\nBackdrop</pre>Backdrop  Backdrop\n\nBackdrop</p>";
  // @todo The whitespace should be collapsed.
  $collapsed = "Backdrop  Backdrop\n\nBackdropBackdrop  Backdrop\n\nBackdropBackdrop  Backdrop\n\nBackdrop\n\n";
  $this->assertHtmlToText(
  $input, 
  $collapsed, 
  'Whitespace is collapsed', 
  array('p')
  );
}