Exemple #1
0
 public function testGetAmount()
 {
     $this->product->expects($this->any())->method('hasData')->will($this->returnValue(false));
     $this->product->expects($this->any())->method('getData')->will($this->returnValue(11.26));
     $this->assertEquals('11.26', $this->helperData->getAmountExclTax($this->product));
 }
 /**
  * Obtain amount
  *
  * @param SaleableInterface $saleableItem
  * @return float
  */
 protected function getAmount(SaleableInterface $saleableItem)
 {
     $weeeAmount = $this->weeeHelper->getAmountExclTax($saleableItem);
     $weeeAmount = $this->priceCurrency->convert($weeeAmount);
     return $weeeAmount;
 }
 /**
  * Get weee amount
  *
  * @return float
  */
 protected function getWeeeAmount()
 {
     $product = $this->getSaleableItem();
     return $this->weeeHelper->getAmountExclTax($product);
 }