Пример #1
0
 public function testGetQuantity()
 {
     $this->assertEquals(1, $this->price->getQuantity());
 }
Пример #2
0
 public function testGetCustomAmountDefault()
 {
     $customAmount = 42.0;
     $this->calculatorMock->expects($this->once())->method('getAmount')->with($this->price->getValue(), $this->saleableItemMock, null)->will($this->returnValue($customAmount));
     $this->assertEquals($customAmount, $this->price->getCustomAmount());
 }