WordPress.org

Make WordPress Core

Changeset 36786


Ignore:
Timestamp:
02/29/2016 10:04:32 PM (4 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/mail.php

    r36594 r36786  
    2121    function test_wp_mail_break_it() {
    2222        $content = str_repeat( 'A', 1000 );
    23         wp_mail( WP_TESTS_EMAIL, 'Looong line testing', $content);
     23        $this->assertTrue( wp_mail( WP_TESTS_EMAIL, 'Looong line testing', $content ) );
    2424    }
    2525
Note: See TracChangeset for help on using the changeset viewer.