From 8b1afc47432bba8e948a91b65b26d2d601e6f78b Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 27 Nov 2016 01:24:58 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/auth.php | 1 + 1 file changed, 1 insertion(+) 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 );