Make WordPress Core


Ignore:
Timestamp:
10/09/2016 01:11:14 AM (10 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Begin eliminating unnecessary randomness in tests.

Although unlikely, clashes in randomly generated strings could cause unexpected failures. In addition, most randomness is entirely unnecessary, is bad practice, and increases test time (however small it may be).

See #37371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/link/getPreviewPostLink.php

    r37566 r38762  
    5353
    5454    public function test_get_preview_post_link_should_return_empty_string_for_non_viewable_post_type() {
    55         $post_type = register_post_type( rand_str(12), array(
     55        $post_type = register_post_type( 'non_viewable_cpt', array(
    5656            'public' => false,
    5757        ) );
Note: See TracChangeset for help on using the changeset viewer.