Make WordPress Core


Ignore:
Timestamp:
12/19/2021 01:42:37 PM (2 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/preinitHooks.php

    r50342 r52389  
    1111    public function test_array_to_hooks() {
    1212        $tag1      = __FUNCTION__ . '_1';
    13         $priority1 = rand( 1, 100 );
     13        $priority1 = 1;
    1414        $tag2      = __FUNCTION__ . '_2';
    15         $priority2 = rand( 1, 100 );
     15        $priority2 = 2;
    1616        $filters   = array(
    1717            $tag1 => array(
Note: See TracChangeset for help on using the changeset viewer.