Closed (fixed)
Project:
Drupal core
Version:
main
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2026 at 16:39 UTC
Updated:
14 Apr 2026 at 12:04 UTC
Jump to comment: Most recent
KernelTestBase does this:
// Relax the password hashing cost in tests to avoid performance issues.
$container->setParameter('password.algorithm', PASSWORD_BCRYPT);
$container->setParameter('password.options', ['cost' => 4]);
Functional tests should do the same. This was harder prior to #3530186: Switch to argon2 as the default password hashing algorithm as we had to override the definition, now we can just set parameters.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
longwaveComment #4
smustgrave commentedSeems pretty straight forward. Wonder if comment could be expanded but since it's the same as kernel test seems out of scope.
Comment #5
catchIt's possible we hit a very, very fast test runner, but also I think there's a good chance this is making a difference, e.g. https://git.drupalcode.org/project/drupal/-/jobs/9126339
Comment #9
catchCommitted/pushed to main and 11.x, thanks!