Changeset 55745 for trunk/tests/phpunit/tests/term/getTheTerms.php
- Timestamp:
- 05/11/2023 10:05:51 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTheTerms.php
r52010 r55745 198 198 */ 199 199 public function test_uncached_terms_should_be_primed_with_a_single_query() { 200 global $wpdb;201 202 200 register_taxonomy( 'wptests_tax', 'post' ); 203 201 … … 211 209 clean_term_cache( array( $terms[0], $terms[1] ), 'wptests_tax', false ); 212 210 213 $num_queries = $wpdb->num_queries;211 $num_queries = get_num_queries(); 214 212 $found = get_the_terms( self::$post_ids[0], 'wptests_tax' ); 215 213 … … 217 215 218 216 $num_queries++; 219 $this->assertSame( $num_queries, $wpdb->num_queries);217 $this->assertSame( $num_queries, get_num_queries() ); 220 218 221 219 }
Note: See TracChangeset
for help on using the changeset viewer.