Removed MaxMind from System Status
This commit is contained in:
parent
e325eafc9a
commit
ea36caf17e
|
@ -855,7 +855,7 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller {
|
|||
return array(
|
||||
'wc_database_version' => get_option( 'woocommerce_db_version' ),
|
||||
'database_prefix' => $wpdb->prefix,
|
||||
'maxmind_geoip_database' => WC_Geolocation::get_local_database_path(),
|
||||
'maxmind_geoip_database' => '',
|
||||
'database_tables' => $tables,
|
||||
'database_size' => $database_size,
|
||||
);
|
||||
|
|
|
@ -101,7 +101,6 @@ class WC_Tests_REST_System_Status_V2 extends WC_REST_Unit_Test_Case {
|
|||
|
||||
$this->assertEquals( get_option( 'woocommerce_db_version' ), $database['wc_database_version'] );
|
||||
$this->assertEquals( $wpdb->prefix, $database['database_prefix'] );
|
||||
$this->assertEquals( WC_Geolocation::get_local_database_path(), $database['maxmind_geoip_database'] );
|
||||
$this->assertArrayHasKey( 'woocommerce', $database['database_tables'], print_r( $database, true ) );
|
||||
$this->assertArrayHasKey( $wpdb->prefix . 'woocommerce_payment_tokens', $database['database_tables']['woocommerce'], print_r( $database, true ) );
|
||||
}
|
||||
|
|
|
@ -139,7 +139,6 @@ class WC_Tests_REST_System_Status extends WC_REST_Unit_Test_Case {
|
|||
|
||||
$this->assertEquals( get_option( 'woocommerce_db_version' ), $database['wc_database_version'] );
|
||||
$this->assertEquals( $wpdb->prefix, $database['database_prefix'] );
|
||||
$this->assertEquals( WC_Geolocation::get_local_database_path(), $database['maxmind_geoip_database'] );
|
||||
$this->assertArrayHasKey( 'woocommerce', $database['database_tables'], wc_print_r( $database, true ) );
|
||||
$this->assertArrayHasKey( $wpdb->prefix . 'woocommerce_payment_tokens', $database['database_tables']['woocommerce'], wc_print_r( $database, true ) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue