WordPress.org

Make WordPress Core

Changeset 36790


Ignore:
Timestamp:
02/29/2016 10:49:15 PM (4 years ago)
Author:
boonebgorges
Message:

Ensure that user __unset() tests make assertions.

See #36016.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user.php

    r36594 r36790  
    215215    function test_user_unset_lowercase_id( $user ) {
    216216        // Test 'id' (lowercase)
     217        $id = $user->id;
    217218        unset( $user->id );
     219        $this->assertSame( $id, $user->id );
    218220        return $user;
    219221    }
Note: See TracChangeset for help on using the changeset viewer.