Make WordPress Core


Ignore:
Timestamp:
05/18/2021 09:04:31 PM (4 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/getTerm.php

    r48937 r50926  
    136136        $found = get_term( $term_data );
    137137
    138         $this->assertTrue( $found instanceof WP_Term );
     138        $this->assertInstanceOf( 'WP_Term', $found );
    139139        $this->assertInternalType( 'int', $found->term_id );
    140140        $this->assertInternalType( 'int', $found->term_taxonomy_id );
Note: See TracChangeset for help on using the changeset viewer.