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

    r52248 r52389  
    2222                $post_id             = $factory->post->create(
    2323                        array(
    24                                 'post_content' => 1 . rand_str() . ' about',
     24                                'post_content' => '1 about',
    2525                                'post_type'    => self::$post_type,
    2626                        )
     
    3131                $post_id             = $factory->post->create(
    3232                        array(
    33                                 'post_content' => 1 . rand_str() . ' about',
     33                                'post_content' => '2 about',
    3434                                'post_type'    => self::$post_type,
    3535                        )
     
    4242                $post_id             = $factory->post->create(
    4343                        array(
    44                                 'post_content' => 1 . rand_str() . ' about',
     44                                'post_content' => '3 about',
    4545                                'post_type'    => self::$post_type,
    4646                        )
     
    5353                $post_id             = $factory->post->create(
    5454                        array(
    55                                 'post_content' => 1 . rand_str() . ' about',
     55                                'post_content' => '4 about',
    5656                                'post_type'    => self::$post_type,
    5757                        )
Note: See TracChangeset for help on using the changeset viewer.