Ensure that user __unset() tests make assertions.

See #36016.

git-svn-id: https://develop.svn.wordpress.org/trunk@36790 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2016-02-29 22:49:15 +00:00
parent 1fb24d9e8d
commit 26a8cbdb44

View File

@ -214,7 +214,9 @@ class Tests_User extends WP_UnitTestCase {
*/
function test_user_unset_lowercase_id( $user ) {
// Test 'id' (lowercase)
$id = $user->id;
unset( $user->id );
$this->assertSame( $id, $user->id );
return $user;
}