Make WordPress Core


Ignore:
Timestamp:
06/11/2025 02:24:47 PM (11 months ago)
Author:
johnbillion
Message:

Build/Test Tools: Reduce the bcrypt cost during testing in order to speed up tests.

The lowest allowable cost in PHP is 4, so 5 is used which means tests can still to reduce the cost by one when testing alterations to the cost.

See #63026

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/auth.php

    r60253 r60298  
    20902090
    20912091    private static function get_default_bcrypt_cost(): int {
    2092         $hash = password_hash( 'password', PASSWORD_BCRYPT );
    2093         $info = password_get_info( $hash );
    2094 
    2095         return $info['options']['cost'];
     2092        return 5;
    20962093    }
    20972094}
Note: See TracChangeset for help on using the changeset viewer.