mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 09:34:41 +00:00
General: Fix some precision alignment formatting warnings.
The WPCS `WordPress.WhiteSpace.PrecisionAlignment` rule throws warnings for a bunch of code that will likely cause issues for `wpcbf`. Fixing these manually beforehand gives us better auto-fixed results later. See #41057. git-svn-id: https://develop.svn.wordpress.org/trunk@42228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -616,10 +616,10 @@ class Tests_Comment extends WP_UnitTestCase {
|
||||
|
||||
// Check to see if a notification email was sent to the post author `test@test.com`.
|
||||
if ( isset( $GLOBALS['phpmailer']->mock_sent ) &&
|
||||
! empty( $GLOBALS['phpmailer']->mock_sent ) &&
|
||||
'test@test.com' == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0] ) {
|
||||
$email_sent_when_comment_added = true;
|
||||
reset_phpmailer_instance();
|
||||
! empty( $GLOBALS['phpmailer']->mock_sent ) &&
|
||||
'test@test.com' == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0] ) {
|
||||
$email_sent_when_comment_added = true;
|
||||
reset_phpmailer_instance();
|
||||
} else {
|
||||
$email_sent_when_comment_added = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user