diff --git a/tests/phpunit/tests/auth.php b/tests/phpunit/tests/auth.php index 581e856f64..e025459e6e 100644 --- a/tests/phpunit/tests/auth.php +++ b/tests/phpunit/tests/auth.php @@ -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 );