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

    r52010 r52389  
    241241        $this->assertSame( 0, did_action( $tag2 ) );
    242242
    243         // Do action $tag2 a random number of times.
    244         $count = rand( 0, 10 );
     243        // Do action $tag2 10 times.
     244        $count = 10;
    245245        for ( $i = 0; $i < $count; $i++ ) {
    246246            do_action( $tag2 );
Note: See TracChangeset for help on using the changeset viewer.