public function testGetQuantity() { $this->assertEquals(1, $this->price->getQuantity()); }
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()); }