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

    r38337 r38382  
    23152315    protected function set_up_three_posts_and_tags() {
    23162316        $posts = self::factory()->post->create_many( 3, array( 'post_type' => 'post' ) );
    2317         foreach ( $posts as $post ) {
    2318             wp_set_object_terms( $post, rand_str(), 'post_tag' );
     2317        foreach ( $posts as $i => $post ) {
     2318            wp_set_object_terms( $post, "term_{$i}", 'post_tag' );
    23192319        }
    23202320
Note: See TracChangeset for help on using the changeset viewer.