Changeset 42228 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 11/26/2017 11:56:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r40981 r42228 617 617 // Check to see if a notification email was sent to the post author `test@test.com`. 618 618 if ( isset( $GLOBALS['phpmailer']->mock_sent ) && 619 620 621 $email_sent_when_comment_added = true;622 reset_phpmailer_instance();619 ! empty( $GLOBALS['phpmailer']->mock_sent ) && 620 'test@test.com' == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0] ) { 621 $email_sent_when_comment_added = true; 622 reset_phpmailer_instance(); 623 623 } else { 624 624 $email_sent_when_comment_added = false;
Note: See TracChangeset
for help on using the changeset viewer.