Ejemplo n.º 1
0
 public function testTypeHarmonized()
 {
     $order = Cart::getOrder();
     $item = $order->addItem(array("name" => "test product", "description" => "Product description...", "price" => 100, "quantity" => 1, "taxable" => true, "identifier" => 1));
     $order->editShippingAddress(TestFactory::createOntarioAddress());
     $GST = $order->getTaxByTitle("GST");
     $HST = $order->getTaxByTitle("HST");
     $this->assertEquals(0, $GST->getAmount());
     $this->assertEquals(13, $HST->getAmount());
     $this->assertEquals(13, $order->getAmountTaxes());
     $this->assertEquals(13, $item->getAmountTaxes());
 }