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/term/cache.php

    r48939 r50926  
    434434        $term = get_term_by( 'name', 'Burrito', 'post_tag' );
    435435        $num_queries++;
    436         $this->assertTrue( $term instanceof WP_Term );
     436        $this->assertInstanceOf( 'WP_Term', $term );
    437437        $this->assertSame( $term_id, $term->term_id );
    438438        $this->assertSame( $num_queries, $wpdb->num_queries );
Note: See TracChangeset for help on using the changeset viewer.