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/query/search.php

    r52010 r52389  
    1111        parent::set_up();
    1212
    13         $this->post_type = rand_str( 12 );
     13        $this->post_type = 'foo1';
    1414        register_post_type( $this->post_type );
    1515
     
    3737            self::factory()->post->create(
    3838                array(
    39                     'post_content' => $i . rand_str() . ' about',
     39                    'post_content' => "{$i} about",
    4040                    'post_type'    => $this->post_type,
    4141                )
Note: See TracChangeset for help on using the changeset viewer.