Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since the password_inc variable determines which file is being included
require_once DRUPAL_ROOT . '/' . variable_get('password_inc', 'includes/password.inc');
and since the core's implementation's documentation states
An alternative or custom version of this password hashing API [...] containing replacement user_hash_password(), user_check_password(), and user_needs_new_hash() functions.
the testPasswordHashing function should not assume there's a constant DRUPAL_MIN_HASH_COUNT nor a function _password_get_count_log2.
Comment | File | Size | Author |
---|---|---|---|
#1 | simpletest-conditional_testPasswordHashing-2238599-1.patch | 4.54 KB | Sneakyvv |
Comments
Comment #1
Sneakyvv CreditAttribution: Sneakyvv commentedI've attached a patch which makes the function testPasswordHashing check if the constant and function exist.