WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/26/2016 08:21:30 PM (4 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/option/transient.php

    r34828 r38382  
    1515
    1616    function test_the_basics() {
    17         $key = rand_str();
    18         $value = rand_str();
    19         $value2 = rand_str();
     17        $key = 'key1';
     18        $value = 'value1';
     19        $value2 = 'value2';
    2020
    2121        $this->assertFalse( get_transient( 'doesnotexist' ) );
Note: See TracChangeset for help on using the changeset viewer.