public function testGetAmount() { $amountMock = $this->getMock('Magento\\Framework\\Pricing\\Amount\\AmountInterface'); $this->bundleCalculatorMock->expects($this->once())->method('getOptionsAmount')->with($this->equalTo($this->saleableItemMock))->will($this->returnValue($amountMock)); $this->assertSame($amountMock, $this->bundleOptionPrice->getAmount()); }