Changeset 55759 for trunk/tests/phpunit/tests/term/wpGetObjectTerms.php
- Timestamp:
- 05/16/2023 12:29:34 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpGetObjectTerms.php
r55745 r55759 615 615 /** 616 616 * @ticket 10142 617 */ 618 public function test_termmeta_cache_should_be_lazy_loaded_by_default() { 617 * @ticket 57701 618 */ 619 public function test_termmeta_cache_should_not_be_lazy_loaded_by_default() { 619 620 register_taxonomy( 'wptests_tax', 'post' ); 620 621 $terms = self::factory()->term->create_many( 3, array( 'taxonomy' => 'wptests_tax' ) ); … … 634 635 } 635 636 636 $this->assertSame( $num_queries + 1, get_num_queries() ); 637 // Here we had extra queries as the term meta cache was not primed by default. 638 $this->assertSame( 3, get_num_queries() - $num_queries ); 637 639 } 638 640
Note: See TracChangeset
for help on using the changeset viewer.