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:
Alex P 2022-06-15 10:00:03 +03:00
parent 0e82a5f6c9
commit 770f8e558b
3 changed files with 12 additions and 12 deletions

View file

@ -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()