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:
parent
20eb6402fd
commit
2c3c286b84
@ -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 );
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user