WordPress.org

Make WordPress Core

Changeset 45709


Ignore:
Timestamp:
08/01/2019 12:02:30 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix WPCS violations after [45708].

See #45747.

Location:
trunk/tests/phpunit/tests/user
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/multisite.php

    r45708 r45709  
    213213                )
    214214            );
    215             wp_update_user( array( 'ID' => $spam_user_id, 'spam' => '1' ) );
     215            wp_update_user(
     216                array(
     217                    'ID'   => $spam_user_id,
     218                    'spam' => '1',
     219                )
     220            );
    216221
    217222            $this->assertTrue( is_user_spammy( $spam_username ) );
  • trunk/tests/phpunit/tests/user/wpAuthenticateSpamCheck.php

    r45708 r45709  
    3535    function test_wp_authenticate_spam_check_returns_wp_error_when_flagged() {
    3636        $user_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
    37         wp_update_user( array( 'ID' => $user_id, 'spam' => '1' ) );
     37        wp_update_user(
     38            array(
     39                'ID'   => $user_id,
     40                'spam' => '1',
     41            )
     42        );
     43
    3844        $user        = new WP_User( $user_id );
    3945        $actual_user = wp_authenticate_spam_check( $user );
Note: See TracChangeset for help on using the changeset viewer.