summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2016-02-01 18:37:58 -0500
committerDavid Rothstein <drothstein@gmail.com>2016-02-01 18:37:58 -0500
commitdbef1acd9520dee6c8ee71d7d0f0dd2129cba068 (patch)
tree1d1a005ba0c1278752cad63f4291f5bf91f7a909 /modules/simpletest
parentf0d59102f528a9c66b1c3355bb6b2ee48f8b0282 (diff)
downloadbrdo-dbef1acd9520dee6c8ee71d7d0f0dd2129cba068.tar.gz
brdo-dbef1acd9520dee6c8ee71d7d0f0dd2129cba068.tar.bz2
Issue #1946090 by pjonckiere, alex-mo, rpayanm: _drupal_wrap_mail_line() does not force-wrap too long words after 996 characters
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/tests/mail.test5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/simpletest/tests/mail.test b/modules/simpletest/tests/mail.test
index 70a43cb45..3e40e13a8 100644
--- a/modules/simpletest/tests/mail.test
+++ b/modules/simpletest/tests/mail.test
@@ -441,7 +441,7 @@ class DrupalHtmlToTextTestCase extends DrupalWebTestCase {
* <CRLF> is 1000 characters."
*/
function testVeryLongLineWrap() {
- $input = 'Drupal<br /><p>' . str_repeat('x', 2100) . '</><br />Drupal';
+ $input = 'Drupal<br /><p>' . str_repeat('x', 2100) . '</p><br />Drupal';
$output = drupal_html_to_text($input);
// This awkward construct comes from includes/mail.inc lines 8-13.
$eol = variable_get('mail_line_endings', MAIL_LINE_ENDINGS);
@@ -455,7 +455,6 @@ class DrupalHtmlToTextTestCase extends DrupalWebTestCase {
$maximum_line_length = max($maximum_line_length, strlen($line . $eol));
}
$verbose = 'Maximum line length found was ' . $maximum_line_length . ' octets.';
- // @todo This should assert that $maximum_line_length <= 1000.
- $this->pass($verbose);
+ $this->assertTrue($maximum_line_length <= 1000, $verbose);
}
}