Make WordPress Core

Changeset 35347


Ignore:
Timestamp:
10/21/2015 10:33:53 PM (6 years ago)
Author:
johnbillion
Message:

Correctly use WP_TESTS_EMAIL in email tests.

See #761, #34000

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

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

    r35339 r35347  
    515515        if ( isset( $GLOBALS['phpmailer']->mock_sent )
    516516            && ! empty( $GLOBALS['phpmailer']->mock_sent )
    517             && 'admin@example.org' == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0]
     517            && WP_TESTS_EMAIL == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0]
    518518        ) {
    519519            $email_sent_when_comment_added = true;
  • trunk/tests/phpunit/tests/mail.php

    r34234 r35347  
    2121    function test_wp_mail_break_it() {
    2222        $content = str_repeat( 'A', 1000 );
    23         wp_mail( "admin@example.org", 'Looong line testing', $content);
     23        wp_mail( WP_TESTS_EMAIL, 'Looong line testing', $content);
    2424    }
    2525
Note: See TracChangeset for help on using the changeset viewer.