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/multisite/site.php

    r38659 r38762  
    271271     */
    272272    function test_upload_directories_after_multiple_wpmu_delete_blog() {
    273         $filename = rand_str().'.jpg';
    274         $contents = rand_str();
     273        $filename = __FUNCTION__ . '.jpg';
     274        $contents = __FUNCTION__ . '_contents';
    275275
    276276        // Upload a file to the main site on the network.
Note: See TracChangeset for help on using the changeset viewer.