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/getPost.php

    r52010 r52389  
    1515        $this->post_date_ts            = strtotime( '+1 day' );
    1616        $this->post_data               = array(
    17             'post_title'   => rand_str(),
    18             'post_content' => rand_str( 2000 ),
    19             'post_excerpt' => rand_str( 100 ),
     17            'post_title'   => 'Post Title',
     18            'post_content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
     19            'post_excerpt' => 'Post Excerpt',
    2020            'post_author'  => $this->make_user_by_role( 'author' ),
    2121            'post_date'    => date_format( date_create( "@{$this->post_date_ts}" ), 'Y-m-d H:i:s' ),
Note: See TracChangeset for help on using the changeset viewer.