Skip to content

Commit

Permalink
Update test bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Aug 30, 2024
1 parent 5d1fb23 commit 3424284
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/Integration/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,23 @@ function () {
}
);

tests_add_filter(
'wp_loaded',
function() {

if ( BootstrapManager::isGroup( 'PerformanceHints' ) ) {
return;
}
global $wpdb;

$table_name = $wpdb->prefix . 'wpr_above_the_fold';
$wpdb->query( "DROP TABLE IF EXISTS {$table_name}" );

$table_name = $wpdb->prefix . 'wpr_lazy_render_content';
$wpdb->query( "DROP TABLE IF EXISTS {$table_name}" );
}
);

// install WC.
tests_add_filter(
'setup_theme',
Expand Down

0 comments on commit 3424284

Please sign in to comment.