public function testDisplayPrices()
 {
     $basePrice = 3;
     $price = 4;
     $display = "\$3 [L4]";
     $this->defaultColumnRenderer->expects($this->once())->method('displayPrices')->with($basePrice, $price)->will($this->returnValue($display));
     $this->assertEquals($display, $this->renderer->displayPrices($basePrice, $price));
 }
 public function testGetBaseTotalAmount()
 {
     $baseRowTotal = 10;
     $baseDiscountAmount = 2;
     $expectedResult = 8;
     $this->itemMock->expects($this->once())->method('getBaseRowTotal')->will($this->returnValue($baseRowTotal));
     $this->itemMock->expects($this->once())->method('getBaseDiscountAmount')->will($this->returnValue($baseDiscountAmount));
     $this->assertEquals($expectedResult, $this->defaultColumn->getBaseTotalAmount($this->itemMock));
 }
Exemple #3
0
 /**
  * Return html that contains both base price and display price
  *
  * @param float $basePrice
  * @param float $displayPrice
  * @return string
  */
 public function displayPrices($basePrice, $displayPrice)
 {
     return $this->defaultColumnRenderer->displayPrices($basePrice, $displayPrice);
 }