From 0a1e0cd7d6c35fa2e3bb3cdcb9aa590c26ac3a33 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Mon, 29 Feb 2016 22:04:32 +0000 Subject: [PATCH] Tests: Make sure that `test_wp_mail_break_it()` makes an assertion. Let's make what is possibly the oddest test in WordPress even a bit odder. See https://core.trac.wordpress.org/ticket/28909#comment:47 for backstory on the test. See #36016. git-svn-id: https://develop.svn.wordpress.org/trunk@36786 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/mail.php b/tests/phpunit/tests/mail.php index c8a435b904..25c49c1c84 100644 --- a/tests/phpunit/tests/mail.php +++ b/tests/phpunit/tests/mail.php @@ -20,7 +20,7 @@ class Tests_Mail extends WP_UnitTestCase { */ function test_wp_mail_break_it() { $content = str_repeat( 'A', 1000 ); - wp_mail( WP_TESTS_EMAIL, 'Looong line testing', $content); + $this->assertTrue( wp_mail( WP_TESTS_EMAIL, 'Looong line testing', $content ) ); } function test_wp_mail_custom_boundaries() {