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 git-svn-id: https://develop.svn.wordpress.org/trunk@39364 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
25ede80cab
commit
8b1afc4743
@ -239,6 +239,7 @@ class Tests_Auth extends WP_UnitTestCase {
|
||||
|
||||
// A valid key should be accepted
|
||||
$check = check_password_reset_key( $key, $this->user->user_login );
|
||||
$this->assertNotWPError( $check );
|
||||
$this->assertInstanceOf( 'WP_User', $check );
|
||||
$this->assertSame( $this->user->ID, $check->ID );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user