Changeset 51436
- Timestamp:
- 07/15/2021 09:06:20 AM (3 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/filesystem/base.php
r47198 r51436 30 30 function test_is_MockFS_sane() { 31 31 global $wp_filesystem; 32 $this->assert True( is_a( $wp_filesystem, 'WP_Filesystem_MockFS' ));32 $this->assertInstanceOf( 'WP_Filesystem_MockFS', $wp_filesystem ); 33 33 34 34 $wp_filesystem->init( '/' ); -
trunk/tests/phpunit/tests/post/query.php
r51367 r51436 103 103 104 104 // Posts are WP_Post objects. 105 $this->assert True( is_a( $post, 'WP_Post' ));105 $this->assertInstanceOf( 'WP_Post', $post ); 106 106 107 107 // Filters are raw. -
trunk/tests/phpunit/tests/sitemaps/functions.php
r50491 r51436 56 56 57 57 foreach ( $expected as $name => $provider ) { 58 $this->assert True( is_a( $sitemaps[ $name ], $provider ), "Default $name sitemap is not a $provider object." );58 $this->assertInstanceOf( $provider, $sitemaps[ $name ], "Default $name sitemap is not a $provider object." ); 59 59 } 60 60 } -
trunk/tests/phpunit/tests/taxonomy.php
r51397 r51436 439 439 'cat_name' => 'Error', 440 440 ); 441 $this->assert True( is_a( wp_insert_category( $cat, true ), 'WP_Error') );441 $this->assertInstanceOf( 'WP_Error', wp_insert_category( $cat, true ) ); 442 442 } 443 443
Note: See TracChangeset
for help on using the changeset viewer.