mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-28 21:10:16 +00:00
Tests: Use assertInstanceOf() instead of assertTrue() in some tests.
See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@50926 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -433,7 +433,7 @@ class Tests_Term_Cache extends WP_UnitTestCase {
|
||||
|
||||
$term = get_term_by( 'name', 'Burrito', 'post_tag' );
|
||||
$num_queries++;
|
||||
$this->assertTrue( $term instanceof WP_Term );
|
||||
$this->assertInstanceOf( 'WP_Term', $term );
|
||||
$this->assertSame( $term_id, $term->term_id );
|
||||
$this->assertSame( $num_queries, $wpdb->num_queries );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user