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/term/wpTaxonomy.php

    r51404 r52389  
    1919        global $wp;
    2020
    21         $taxonomy        = rand_str();
     21        $taxonomy        = 'taxonomy1';
    2222        $taxonomy_object = new WP_Taxonomy( $taxonomy, 'post' );
    2323
     
    3232        global $wp;
    3333
    34         $taxonomy        = rand_str();
     34        $taxonomy        = 'taxonomy2';
    3535        $taxonomy_object = new WP_Taxonomy(
    3636            $taxonomy,
     
    5959        global $wp_rewrite;
    6060
    61         $taxonomy        = rand_str();
     61        $taxonomy        = 'taxonomy3';
    6262        $taxonomy_object = new WP_Taxonomy(
    6363            $taxonomy,
     
    8080
    8181    public function test_adds_ajax_callback() {
    82         $taxonomy        = rand_str();
     82        $taxonomy        = 'taxonomy4';
    8383        $taxonomy_object = new WP_Taxonomy(
    8484            $taxonomy,
Note: See TracChangeset for help on using the changeset viewer.