コード例 #1
0
 /**
  * @return void
  */
 public function testSetTaxRateWhenExemptTaxRateUsedAndCountryMatchingShouldUseCountryRate()
 {
     $abstractProcuctEntity = $this->createAbstractProductWithTaxSet(20, 'DE');
     $quoteTransfer = new QuoteTransfer();
     $itemTransfer = new ItemTransfer();
     $itemTransfer->setIdProductAbstract($abstractProcuctEntity->getIdProductAbstract());
     $quoteTransfer->addItem($itemTransfer);
     $taxFacadeTest = $this->createTaxFacade();
     $taxFacadeTest->calculateProductItemTaxRate($quoteTransfer);
     $this->assertEquals('20.00', $itemTransfer->getTaxRate());
 }