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
This commit is contained in:
Boone Gorges 2016-02-29 22:04:32 +00:00
parent 7505593ab8
commit 0a1e0cd7d6
1 changed files with 1 additions and 1 deletions

View File

@ -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() {