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/iterator.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
    1919        $hook->add_filter( $tag, $callback_one, $priority, $accepted_args );
Note: See TracChangeset for help on using the changeset viewer.