Changeset 55745 for trunk/tests/phpunit/tests/customize/manager.php
- Timestamp:
- 05/11/2023 10:05:51 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/manager.php
r55039 r55745 272 272 */ 273 273 public function test_fresh_site_flag_clearing() { 274 global $wp_customize , $wpdb;274 global $wp_customize; 275 275 276 276 // Make sure fresh site flag is cleared when publishing a changeset. … … 284 284 285 285 // Make sure no DB write is done when publishing and a site is already non-fresh. 286 $query_count = $wpdb->num_queries;286 $query_count = get_num_queries(); 287 287 do_action( 'customize_save_after', $wp_customize ); 288 $this->assertSame( $query_count, $wpdb->num_queries);288 $this->assertSame( $query_count, get_num_queries() ); 289 289 } 290 290
Note: See TracChangeset
for help on using the changeset viewer.