mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Do not send tax in each item
Looks like it is not displayed anyway, and it causes mismatch + cannot send shipping/discount taxes as tax
This commit is contained in:
parent
0e82a5f6c9
commit
770f8e558b
3 changed files with 12 additions and 12 deletions
|
@ -72,7 +72,6 @@ class ItemFactoryTest extends TestCase
|
|||
$this->assertEquals('name', $item->name());
|
||||
$this->assertEquals('sku', $item->sku());
|
||||
$this->assertEquals(1, $item->unit_amount()->value());
|
||||
$this->assertEquals(2, $item->tax()->value());
|
||||
}
|
||||
|
||||
public function testFromCartDigitalGood()
|
||||
|
@ -185,7 +184,6 @@ class ItemFactoryTest extends TestCase
|
|||
$this->assertEquals(1, $item->quantity());
|
||||
$this->assertEquals(Item::PHYSICAL_GOODS, $item->category());
|
||||
$this->assertEquals(1, $item->unit_amount()->value());
|
||||
$this->assertEquals(2, $item->tax()->value());
|
||||
}
|
||||
|
||||
public function testFromWcOrderDigitalGood()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue