Make WordPress Core


Ignore:
Timestamp:
12/19/2021 01:42:37 PM (3 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Reduce the use of unnecessary randomness in tests.

This increases the overall reliability of the tests.

Props johnillo

Fixes #37371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/xmlrpc/wp/editProfile.php

    r52010 r52389  
    1717
    1818        $new_data = array(
    19             'first_name'   => rand_str(),
    20             'last_name'    => rand_str(),
     19            'first_name'   => 'firstname',
     20            'last_name'    => 'lastname',
    2121            'url'          => 'http://www.example.org/subscriber',
    22             'display_name' => rand_str(),
    23             'nickname'     => rand_str(),
    24             'nicename'     => rand_str(),
    25             'bio'          => rand_str( 200 ),
     22            'display_name' => 'displayname',
     23            'nickname'     => 'nickname',
     24            'nicename'     => 'nicename',
     25            'bio'          => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    2626        );
    2727        $result   = $this->myxmlrpcserver->wp_editProfile( array( 1, 'subscriber', 'subscriber', $new_data ) );
Note: See TracChangeset for help on using the changeset viewer.