Make WordPress Core


Ignore:
Timestamp:
11/27/2016 01:24:58 AM (8 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Add an extra WP_Error assertion when testing a valid user activation key. This provides a better failure message if the assertion does fail.

See #38716

File:
1 edited

Legend:

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

    r38420 r39364  
    240240        // A valid key should be accepted
    241241        $check = check_password_reset_key( $key, $this->user->user_login );
     242        $this->assertNotWPError( $check );
    242243        $this->assertInstanceOf( 'WP_User', $check );
    243244        $this->assertSame( $this->user->ID, $check->ID );
Note: See TracChangeset for help on using the changeset viewer.