Skip to content

Commit

Permalink
transpile fix #720
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed May 18, 2024
1 parent 18c4e83 commit bfbc52a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions includes/core-phpunit/includes/abstract-testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ public static function set_up_before_class() {

$wpdb->suppress_errors = false;
$wpdb->show_errors = true;
$wpdb->db_connect();
ini_set( 'display_errors', 1 );
if ( ! $wpdb->check_connection() ) {
$wpdb->db_connect();
}
ini_set( 'display_errors', 1 );

$class = self::$calledClass ?? get_called_class();

Expand Down

0 comments on commit bfbc52a

Please sign in to comment.