Make WordPress Core

Changeset 55032


Ignore:
Timestamp:
01/05/2023 11:17:18 AM (18 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/pluggable/wpMail.php

    r55030 r55032  
    462462     */
    463463    public function test_wp_mail_sends_attachments_with_original_name() {
    464         wp_mail( 'user@example.org', 'Subject', 'Hello World', '', array(
    465             DIR_TESTDATA . '/images/canola.jpg',
    466             DIR_TESTDATA . '/images/waffles.jpg'
    467         ) );
     464        wp_mail(
     465            'user@example.org',
     466            'Subject',
     467            'Hello World',
     468            '',
     469            array(
     470                DIR_TESTDATA . '/images/canola.jpg',
     471                DIR_TESTDATA . '/images/waffles.jpg',
     472            )
     473        );
    468474
    469475        /** @var PHPMailer $mailer */
     
    484490     */
    485491    public function test_wp_mail_sends_attachments_with_custom_name() {
    486         wp_mail( 'user@example.org', 'Subject', 'Hello World', '', array(
    487             'alonac.jpg'  => DIR_TESTDATA . '/images/canola.jpg',
    488             'selffaw.jpg' => DIR_TESTDATA . '/images/waffles.jpg'
    489         ) );
     492        wp_mail(
     493            'user@example.org',
     494            'Subject',
     495            'Hello World',
     496            '',
     497            array(
     498                'alonac.jpg'  => DIR_TESTDATA . '/images/canola.jpg',
     499                'selffaw.jpg' => DIR_TESTDATA . '/images/waffles.jpg',
     500            )
     501        );
    490502
    491503        /** @var PHPMailer $mailer */
Note: See TracChangeset for help on using the changeset viewer.