Make WordPress Core


Ignore:
Timestamp:
12/19/2021 01:42:37 PM (5 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/rewrite/numericSlugs.php

    r51568 r52389  
    2424                                'post_author'  => $this->author_id,
    2525                                'post_status'  => 'publish',
    26                                 'post_content' => rand_str(),
     26                                'post_content' => 'content',
    2727                                'post_title'   => '',
    2828                                'post_name'    => '2015',
    … …  
    5454                                'post_author'  => $this->author_id,
    5555                                'post_status'  => 'publish',
    56                                 'post_content' => rand_str(),
     56                                'post_content' => 'content',
    5757                                'post_title'   => '',
    5858                                'post_name'    => '2015',
    … …  
    8181                                'post_author'  => $this->author_id,
    8282                                'post_status'  => 'publish',
    83                                 'post_content' => rand_str(),
     83                                'post_content' => 'content',
    8484                                'post_title'   => '2015',
    8585                                'post_date'    => '2015-02-01 01:00:00',
    … …  
    9999                                'post_author'  => $this->author_id,
    100100                                'post_status'  => 'publish',
    101                                 'post_content' => rand_str(),
     101                                'post_content' => 'content',
    102102                                'post_title'   => '2015',
    103103                                'post_date'    => '2015-02-01 01:00:00',
    … …  
    115115                                'post_author'  => $this->author_id,
    116116                                'post_status'  => 'publish',
    117                                 'post_content' => rand_str(),
     117                                'post_content' => 'content',
    118118                                'post_title'   => '',
    119119                                'post_name'    => '02',
    … …  
    134134                                'post_author'  => $this->author_id,
    135135                                'post_status'  => 'publish',
    136                                 'post_content' => rand_str(),
     136                                'post_content' => 'content',
    137137                                'post_title'   => '',
    138138                                'post_name'    => '02',
    … …  
    151151                                'post_author'  => $this->author_id,
    152152                                'post_status'  => 'publish',
    153                                 'post_content' => rand_str(),
     153                                'post_content' => 'content',
    154154                                'post_title'   => '',
    155155                                'post_name'    => '2',
    … …  
    170170                                'post_author'  => $this->author_id,
    171171                                'post_status'  => 'publish',
    172                                 'post_content' => rand_str(),
     172                                'post_content' => 'content',
    173173                                'post_title'   => '',
    174174                                'post_name'    => '2',
    … …  
    187187                                'post_author'  => $this->author_id,
    188188                                'post_status'  => 'publish',
    189                                 'post_content' => rand_str(),
     189                                'post_content' => 'content',
    190190                                'post_title'   => '02',
    191191                                'post_date'    => '2015-02-01 01:00:00',
    … …  
    205205                                'post_author'  => $this->author_id,
    206206                                'post_status'  => 'publish',
    207                                 'post_content' => rand_str(),
     207                                'post_content' => 'content',
    208208                                'post_title'   => '02',
    209209                                'post_date'    => '2015-02-01 01:00:00',
    … …  
    221221                                'post_author'  => $this->author_id,
    222222                                'post_status'  => 'publish',
    223                                 'post_content' => rand_str(),
     223                                'post_content' => 'content',
    224224                                'post_title'   => '2',
    225225                                'post_date'    => '2015-02-01 01:00:00',
    … …  
    239239                                'post_author'  => $this->author_id,
    240240                                'post_status'  => 'publish',
    241                                 'post_content' => rand_str(),
     241                                'post_content' => 'content',
    242242                                'post_title'   => '2',
    243243                                'post_date'    => '2015-02-01 01:00:00',
    … …  
    255255                                'post_author'  => $this->author_id,
    256256                                'post_status'  => 'publish',
    257                                 'post_content' => rand_str(),
     257                                'post_content' => 'content',
    258258                                'post_title'   => '',
    259259                                'post_name'    => '01',
    … …  
    274274                                'post_author'  => $this->author_id,
    275275                                'post_status'  => 'publish',
    276                                 'post_content' => rand_str(),
     276                                'post_content' => 'content',
    277277                                'post_title'   => '',
    278278                                'post_name'    => '01',
    … …  
    291291                                'post_author'  => $this->author_id,
    292292                                'post_status'  => 'publish',
    293                                 'post_content' => rand_str(),
     293                                'post_content' => 'content',
    294294                                'post_title'   => '01',
    295295                                'post_date'    => '2015-02-01 01:00:00',
    … …  
    309309                                'post_author'  => $this->author_id,
    310310                                'post_status'  => 'publish',
    311                                 'post_content' => rand_str(),
     311                                'post_content' => 'content',
    312312                                'post_title'   => '01',
    313313                                'post_date'    => '2015-02-01 01:00:00',
    … …  
    325325                                'post_author'  => $this->author_id,
    326326                                'post_status'  => 'publish',
    327                                 'post_content' => rand_str(),
     327                                'post_content' => 'content',
    328328                                'post_title'   => '01',
    329329                                'post_date'    => '2015-02-01 01:00:00',
Note: See TracChangeset for help on using the changeset viewer.