Correctly use `WP_TESTS_EMAIL` in email tests.

See #761, #34000


git-svn-id: https://develop.svn.wordpress.org/trunk@35347 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2015-10-21 22:33:53 +00:00
parent 20eb6402fd
commit 2c3c286b84
2 changed files with 2 additions and 2 deletions

View File

@ -514,7 +514,7 @@ class Tests_Comment extends WP_UnitTestCase {
// Check to see if a notification email was sent to the moderator `admin@example.org`.
if ( isset( $GLOBALS['phpmailer']->mock_sent )
&& ! empty( $GLOBALS['phpmailer']->mock_sent )
&& 'admin@example.org' == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0]
&& WP_TESTS_EMAIL == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0]
) {
$email_sent_when_comment_added = true;
unset( $GLOBALS['phpmailer']->mock_sent );

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( "admin@example.org", 'Looong line testing', $content);
wp_mail( WP_TESTS_EMAIL, 'Looong line testing', $content);
}
function test_wp_mail_custom_boundaries() {