Changeset 50926 for trunk/tests/phpunit/tests/term/getTermBy.php
- Timestamp:
- 05/18/2021 09:04:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTermBy.php
r48937 r50926 126 126 $num_queries++; 127 127 128 $this->assert True( $found instanceof WP_Term);128 $this->assertInstanceOf( 'WP_Term', $found ); 129 129 $this->assertSame( $t, $found->term_id ); 130 130 $this->assertSame( $num_queries, $wpdb->num_queries ); … … 152 152 $found = get_term_by( 'name', $term_name_slashed, 'wptests_tax' ); 153 153 154 $this->assert True( $found instanceof WP_Term);154 $this->assertInstanceOf( 'WP_Term', $found ); 155 155 $this->assertSame( $t, $found->term_id ); 156 156 $this->assertSame( $term_name, $found->name ); … … 172 172 $found1 = get_term_by( 'slug', 'foo foo', 'wptests_tax' ); 173 173 174 $this->assert True( $found1 instanceof WP_Term);174 $this->assertInstanceOf( 'WP_Term', $found1 ); 175 175 $this->assertSame( $t1, $found1->term_id ); 176 176 … … 185 185 $found2 = get_term_by( 'slug', '仪表盘', 'wptests_tax' ); 186 186 187 $this->assert True( $found2 instanceof WP_Term);187 $this->assertInstanceOf( 'WP_Term', $found2 ); 188 188 $this->assertSame( $t2, $found2->term_id ); 189 189 }
Note: See TracChangeset
for help on using the changeset viewer.