mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Tests: Use assertInstanceOf() instead of assertTrue() in some tests.
See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@50926 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -64,7 +64,7 @@ class Tests_User_UpdateUserCaches extends WP_UnitTestCase {
|
||||
update_user_caches( $user_object );
|
||||
|
||||
$cached = wp_cache_get( $u, 'users' );
|
||||
$this->assertFalse( $cached instanceof WP_User );
|
||||
$this->assertNotInstanceOf( 'WP_User', $cached );
|
||||
$this->assertEquals( $raw_userdata, $cached );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user