Make WordPress Core


Ignore:
Timestamp:
12/19/2021 01:42:37 PM (3 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Reduce the use of unnecessary randomness in tests.

This increases the overall reliability of the tests.

Props johnillo

Fixes #37371

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/hooks/applyFilters.php

    r50342 r52389  
    1414        $hook          = new WP_Hook();
    1515        $tag           = __FUNCTION__;
    16         $priority      = rand( 1, 100 );
    17         $accepted_args = rand( 1, 100 );
     16        $priority      = 1;
     17        $accepted_args = 2;
    1818        $arg           = __FUNCTION__ . '_arg';
    1919
     
    3131        $hook          = new WP_Hook();
    3232        $tag           = __FUNCTION__;
    33         $priority      = rand( 1, 100 );
    34         $accepted_args = rand( 1, 100 );
     33        $priority      = 1;
     34        $accepted_args = 2;
    3535        $arg           = __FUNCTION__ . '_arg';
    3636
Note: See TracChangeset for help on using the changeset viewer.