Make WordPress Core

Changeset 45717


Ignore:
Timestamp:
08/01/2019 07:53:45 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Users: Clean user cache in check_password_reset_key() tests.

Props davidbaumwald, spacedmonkey.
See #45845.

File:
1 edited

Legend:

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

    r45714 r45717  
    257257                        )
    258258                );
     259                clean_user_cache( $this->user );
    259260
    260261                // A valid key should be accepted
     
    294295                        )
    295296                );
     297                clean_user_cache( $this->user );
    296298
    297299                // An expired but otherwise valid key should be rejected
     
    331333                        )
    332334                );
     335                clean_user_cache( $this->user );
    333336
    334337                // A legacy user_activation_key should not be accepted
     
    360363                        )
    361364                );
     365                clean_user_cache( $this->user );
    362366
    363367                // A plaintext user_activation_key should not allow an otherwise valid key to be accepted
Note: See TracChangeset for help on using the changeset viewer.