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/post/revisions.php

    r52095 r52389  
    1818    public function set_up() {
    1919        parent::set_up();
    20         $this->post_type = rand_str( 20 );
     20        $this->post_type = 'test-revision';
    2121    }
    2222
     
    447447                'post_status'  => 'publish',
    448448                'ID'           => $post_id,
    449                 'post_content' => rand_str(),
     449                'post_content' => 'content',
    450450            )
    451451        );
Note: See TracChangeset for help on using the changeset viewer.