Make WordPress Core

Changeset 38278


Ignore:
Timestamp:
08/18/2016 07:37:23 PM (8 years ago)
Author:
wonderboymusic
Message:

Unit Tests: skip checking the value in Tests_User:test_user_properties for db. Casting to array is not the most elegant thing here, and various versions of PHP key protected/private fields differently when objects are cast.

See [38275], #37699.

File:
1 edited

Legend:

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

    r38005 r38278  
    188188
    189189        foreach ( (array) $user as $key => $value ) {
     190            if ( $value instanceof wpdb ) {
     191                continue;
     192            }
    190193            $this->assertEquals( $value, $user->$key );
    191194        }
Note: See TracChangeset for help on using the changeset viewer.