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:
Sergey Biryukov
2021-05-18 21:04:31 +00:00
parent 00824d128a
commit fe9ab38075
5 changed files with 8 additions and 8 deletions

View File

@@ -433,7 +433,7 @@ class Tests_Term_Cache extends WP_UnitTestCase {
$term = get_term_by( 'name', 'Burrito', 'post_tag' );
$num_queries++;
$this->assertTrue( $term instanceof WP_Term );
$this->assertInstanceOf( 'WP_Term', $term );
$this->assertSame( $term_id, $term->term_id );
$this->assertSame( $num_queries, $wpdb->num_queries );