Fix tests
This commit is contained in:
parent
6af275da6e
commit
7a829036c2
|
@ -553,7 +553,7 @@ class WC_Tax {
|
|||
'tax_class' => $tax_class,
|
||||
) );
|
||||
|
||||
} else {
|
||||
} elseif ( WC()->cart->get_cart() ) {
|
||||
|
||||
// This will be per order shipping - loop through the order and find the highest tax class rate
|
||||
$cart_tax_classes = WC()->cart->get_cart_item_tax_classes();
|
||||
|
|
|
@ -63,7 +63,7 @@ class WC_Tests_Tax extends WC_Unit_Test_Case {
|
|||
|
||||
$tax_rates = WC_Tax::get_shipping_tax_rates();
|
||||
|
||||
$this->assertEquals( $tax_rates, array( $tax_rate_id => array( 'rate' => '20.0000', 'label' => 'VAT', 'shipping' => 'yes', 'compound' => 'no' ) ) );
|
||||
$this->assertEquals( $tax_rates, array( $tax_rate_id => array( 'rate' => '20.0000', 'label' => 'VAT', 'shipping' => 'yes', 'compound' => 'no' ) ), print_r( $tax_rates, true ) );
|
||||
|
||||
WC_Tax::_delete_tax_rate( $tax_rate_id );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue