Make WordPress Core


Ignore:
Timestamp:
07/02/2019 04:43:01 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/adminbar.php

    r43571 r45588  
    2222
    2323    public static function wpSetUpBeforeClass( $factory ) {
    24         self::$user_ids[] = self::$editor_id = $factory->user->create( array( 'role' => 'editor' ) );
    25         self::$user_ids[] = self::$admin_id = $factory->user->create( array( 'role' => 'administrator' ) );
    26         self::$user_ids[] = self::$no_role_id = $factory->user->create( array( 'role' => '' ) );
     24        self::$editor_id  = $factory->user->create( array( 'role' => 'editor' ) );
     25        self::$user_ids[] = self::$editor_id;
     26        self::$admin_id   = $factory->user->create( array( 'role' => 'administrator' ) );
     27        self::$user_ids[] = self::$admin_id;
     28        self::$no_role_id = $factory->user->create( array( 'role' => '' ) );
     29        self::$user_ids[] = self::$no_role_id;
    2730    }
    2831
Note: See TracChangeset for help on using the changeset viewer.