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:
John Blackbourn 2016-11-27 01:24:58 +00:00
parent 25ede80cab
commit 8b1afc4743
1 changed files with 1 additions and 0 deletions

View File

@ -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 );