Make WordPress Core


Ignore:
Timestamp:
07/15/2021 09:06:20 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Use more appropriate assertions in various tests.

This replaces instances of assertTrue( is_a( ... ) ) with assertInstanceOf() to use native PHPUnit functionality.

Follow-up to [51335], [51337], [51367], [51397], [51403], [51404].

See #53363.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/query.php

    r51367 r51436  
    103103
    104104            // Posts are WP_Post objects.
    105             $this->assertTrue( is_a( $post, 'WP_Post' ) );
     105            $this->assertInstanceOf( 'WP_Post', $post );
    106106
    107107            // Filters are raw.
Note: See TracChangeset for help on using the changeset viewer.