Use ob_end_clean() instead of ob_get_clean()
Doing this change since the content of the output buffer is not used.
This commit is contained in:
parent
b3a9d5b4c2
commit
7979ea6b1a
|
@ -35,7 +35,7 @@ class WC_Tests_Tax_CSV_Importer extends WC_Unit_Test_Case {
|
|||
$importer = new WC_Tax_Rate_Importer();
|
||||
ob_start();
|
||||
$importer->import( $this->csv_file );
|
||||
ob_get_clean();
|
||||
ob_end_clean();
|
||||
$rate_count = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}woocommerce_tax_rates" );
|
||||
$this->assertEquals( 5, $rate_count );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue