mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@38278 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -187,6 +187,9 @@ class Tests_User extends WP_UnitTestCase {
|
||||
$this->assertEquals( 'foo', $user->data->$key ); // This will fail with WP < 3.3
|
||||
|
||||
foreach ( (array) $user as $key => $value ) {
|
||||
if ( $value instanceof wpdb ) {
|
||||
continue;
|
||||
}
|
||||
$this->assertEquals( $value, $user->$key );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user