Make WordPress Core


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

Correctly use WP_TESTS_EMAIL in email tests.

See #761, #34000

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.