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:
parent
1fb24d9e8d
commit
26a8cbdb44
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user