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/termExists.php

    r52010 r52389  
    261261
    262262        // Insert a term.
    263         $term = rand_str();
     263        $term = __FUNCTION__;
    264264        $t    = wp_insert_term( $term, 'wptests_tax' );
    265265        $this->assertIsArray( $t );
Note: See TracChangeset for help on using the changeset viewer.