Coding Standards: Fix WPCS issues in phpunit/tests/pluggable/wpMail.php.

This addresses a few errors along the lines of:

* Opening parenthesis of a multi-line function call must be the last content on the line
* Only one argument is allowed per line in a multi-line function call
* Each array item in a multi-line array declaration must end in a comma
* Closing parenthesis of a multi-line function call must be on a line by itself

Follow-up to [55030].

See #28407.

git-svn-id: https://develop.svn.wordpress.org/trunk@55032 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2023-01-05 11:17:18 +00:00
parent 096878791e
commit bf6ca94eca

View File

@ -461,10 +461,16 @@ class Tests_Pluggable_wpMail extends WP_UnitTestCase {
* @ticket 28407
*/
public function test_wp_mail_sends_attachments_with_original_name() {
wp_mail( 'user@example.org', 'Subject', 'Hello World', '', array(
DIR_TESTDATA . '/images/canola.jpg',
DIR_TESTDATA . '/images/waffles.jpg'
) );
wp_mail(
'user@example.org',
'Subject',
'Hello World',
'',
array(
DIR_TESTDATA . '/images/canola.jpg',
DIR_TESTDATA . '/images/waffles.jpg',
)
);
/** @var PHPMailer $mailer */
$mailer = tests_retrieve_phpmailer_instance();
@ -483,10 +489,16 @@ class Tests_Pluggable_wpMail extends WP_UnitTestCase {
* @ticket 28407
*/
public function test_wp_mail_sends_attachments_with_custom_name() {
wp_mail( 'user@example.org', 'Subject', 'Hello World', '', array(
'alonac.jpg' => DIR_TESTDATA . '/images/canola.jpg',
'selffaw.jpg' => DIR_TESTDATA . '/images/waffles.jpg'
) );
wp_mail(
'user@example.org',
'Subject',
'Hello World',
'',
array(
'alonac.jpg' => DIR_TESTDATA . '/images/canola.jpg',
'selffaw.jpg' => DIR_TESTDATA . '/images/waffles.jpg',
)
);
/** @var PHPMailer $mailer */
$mailer = tests_retrieve_phpmailer_instance();