Fix phpunit

This commit is contained in:
dinamiko 2022-04-19 10:37:33 +02:00
parent e9cf818799
commit 372884ce16
2 changed files with 33 additions and 1 deletions

View file

@ -59,7 +59,6 @@ class ItemFactory {
$price_without_tax_rounded = round( $price_without_tax, 2 );
$tax = round( $price - $price_without_tax_rounded, 2 );
$tax_rates = WC_Tax::get_rates( $product->get_tax_class() );
$tax = new Money( $tax + $shipping_tax, $this->currency );
$tax = new Money( $tax, $this->currency );
return new Item(
mb_substr( $product->get_name(), 0, 127 ),