Make WordPress Core


Ignore:
Timestamp:
08/26/2016 08:21:30 PM (9 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Remove many unnecessary calls to rand_str() which can, in theory, fail at random. Static strings are much more appropriate.

See #37371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/wpInsertTerm.php

    r37641 r38382  
    1111        // insert one term into every post taxonomy
    1212        // otherwise term_ids and term_taxonomy_ids might be identical, which could mask bugs
    13         $term = rand_str();
     13        $term = 'seed_term';
    1414        foreach(get_object_taxonomies('post') as $tax)
    1515            wp_insert_term( $term, $tax );
     
    2121
    2222        // a new unused term
    23         $term = rand_str();
     23        $term = 'term';
    2424        $this->assertNull( term_exists($term) );
    2525
Note: See TracChangeset for help on using the changeset viewer.