Make WordPress Core


Ignore:
Timestamp:
08/26/2016 08:21:30 PM (8 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/admin/includesScreen.php

    r36089 r38382  
    187187     */
    188188    function test_help_tabs_priority() {
    189         $tab_1      = rand_str();
     189        $tab_1      = 'tab1';
    190190        $tab_1_args = array(
    191191            'title'    => 'Help!',
     
    196196        );
    197197
    198         $tab_2      = rand_str();
     198        $tab_2      = 'tab2';
    199199        $tab_2_args = array(
    200200            'title'    => 'Help!',
     
    204204            'priority' => 2,
    205205        );
    206         $tab_3      = rand_str();
     206        $tab_3      = 'tab3';
    207207        $tab_3_args = array(
    208208            'title'    => 'help!',
     
    212212            'priority' => 40,
    213213        );
    214         $tab_4      = rand_str();
     214        $tab_4      = 'tab4';
    215215        $tab_4_args = array(
    216216            'title'    => 'help!',
Note: See TracChangeset for help on using the changeset viewer.