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/filesystem/base.php

    r47198 r51436  
    3030    function test_is_MockFS_sane() {
    3131        global $wp_filesystem;
    32         $this->assertTrue( is_a( $wp_filesystem, 'WP_Filesystem_MockFS' ) );
     32        $this->assertInstanceOf( 'WP_Filesystem_MockFS', $wp_filesystem );
    3333
    3434        $wp_filesystem->init( '/' );
Note: See TracChangeset for help on using the changeset viewer.