Make WordPress Core


Ignore:
Timestamp:
05/18/2021 09:04:31 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Use assertInstanceOf() instead of assertTrue() in some tests.

See #52625.

File:
1 edited

Legend:

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

    r48937 r50926  
    6565
    6666        $cached = wp_cache_get( $u, 'users' );
    67         $this->assertFalse( $cached instanceof WP_User );
     67        $this->assertNotInstanceOf( 'WP_User', $cached );
    6868        $this->assertEquals( $raw_userdata, $cached );
    6969    }
Note: See TracChangeset for help on using the changeset viewer.