/**
  * Test method testGetDisplayValue
  */
 public function testGetAmount()
 {
     $priceValue = $this->price->getValue();
     $amountValue = 88;
     $this->calculatorMock->expects($this->once())->method('getAmount')->with($this->equalTo($priceValue))->will($this->returnValue($amountValue));
     $this->assertEquals($amountValue, $this->price->getAmount());
 }
 /**
  * {@inheritdoc}
  */
 public function getMinRegularAmount()
 {
     if (null === $this->minRegularAmount) {
         $this->minRegularAmount = $this->doGetMinRegularAmount() ?: parent::getAmount();
     }
     return $this->minRegularAmount;
 }