Changeset 55759 for trunk/tests/phpunit/tests/term/getTheTerms.php
- Timestamp:
- 05/16/2023 12:29:34 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term/getTheTerms.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTheTerms.php
r55745 r55759 196 196 /** 197 197 * @ticket 36814 198 */ 199 public function test_uncached_terms_should_be_primed_with_a_single_query() { 198 * @ticket 57701 199 */ 200 public function test_uncached_terms_should_not_be_primed_with_a_single_query_by_default() { 200 201 register_taxonomy( 'wptests_tax', 'post' ); 201 202 … … 214 215 $this->assertSameSets( $terms, wp_list_pluck( $found, 'term_id' ) ); 215 216 216 $num_queries++; 217 $this->assertSame( $num_queries, get_num_queries() ); 218 217 // Two extra queries are expected as the cache is not primed and hence terms need to be queried. 218 $this->assertSame( 1, get_num_queries() - $num_queries ); 219 219 } 220 220
Note: See TracChangeset
for help on using the changeset viewer.