From d5b277e6bd8c6c139b215ad30b166345eceb82b4 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 22 Nov 2014 20:05:34 +0000 Subject: [PATCH] Remove failing test for unimplemented `wp_mail()` enhancement. The removed test has been added as a patch to the original ticket, #15448. Props MikeHansenMe. See #30284. git-svn-id: https://develop.svn.wordpress.org/trunk@30516 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/mail.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/tests/phpunit/tests/mail.php b/tests/phpunit/tests/mail.php index d7d5abfc81..547ed998c3 100644 --- a/tests/phpunit/tests/mail.php +++ b/tests/phpunit/tests/mail.php @@ -71,40 +71,6 @@ class Tests_Mail extends WP_UnitTestCase { $this->assertTrue(strpos($GLOBALS['phpmailer']->mock_sent[0]['header'], 'charset=') > 0); } - /** - * @ticket 15448 - */ - function test_wp_mail_plain_and_html() { - $to = 'user@example.com'; - $subject = 'Test email with plain text and html versions'; - $messages = array( 'text/plain' => 'Here is some plain text.', - 'text/html' =>'Here is the HTML ;-)' ); - - wp_mail( $to, $subject, $messages ); - - preg_match( '/boundary="(.*)"/', $GLOBALS['phpmailer']->mock_sent[0]['header'], $matches); - $boundry = $matches[1]; - $body = '--' . $boundry . ' -Content-Type: text/plain; charset = "UTF-8" -Content-Transfer-Encoding: 8bit - -Here is some plain text. - - ---' . $boundry . ' -Content-Type: text/html; charset = "UTF-8" -Content-Transfer-Encoding: 8bit - -Here is the HTML ;-) - - - ---' . $boundry . '-- -'; - // We need some better assertions here but these test the behaviour for now. - $this->assertEquals($body, $GLOBALS['phpmailer']->mock_sent[0]['body']); - } - /** * @ticket 17305 */