WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/17/2015 07:47:07 PM (6 years ago)
Author:
wonderboymusic
Message:

Unit Tests: better fixtures for Tests_Admin_Includes_Post.

See #30017, #33968.

File:
1 edited

Legend:

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

    r35244 r35245  
    245245
    246246        foreach ( $roles as $role => $level ) {
    247             $user_id = self::factory()->user->create( array(
    248                 'user_email' => 'user_19265_' . $role . '@burritos.com',
    249                 'user_login' => 'user_19265_' . $role,
    250                 'role' => $role
    251             ) );
     247            $user_id = self::factory()->user->create( array( 'role' => $role ) );
    252248            $user = new WP_User( $user_id );
    253249
Note: See TracChangeset for help on using the changeset viewer.