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/removeAllFilters.php

    r50342 r52389  
    1313        $hook          = new WP_Hook();
    1414        $tag           = __FUNCTION__;
    15         $priority      = rand( 1, 100 );
    16         $accepted_args = rand( 1, 100 );
     15        $priority      = 1;
     16        $accepted_args = 2;
    1717
    1818        $hook->add_filter( $tag, $callback, $priority, $accepted_args );
     
    2828        $hook          = new WP_Hook();
    2929        $tag           = __FUNCTION__;
    30         $priority      = rand( 1, 100 );
    31         $accepted_args = rand( 1, 100 );
     30        $priority      = 1;
     31        $accepted_args = 2;
    3232
    3333        $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
Note: See TracChangeset for help on using the changeset viewer.