34 $this->objectManagerMock = $this->createMock(\
Magento\Framework\
App\ObjectManager::class);
35 $this->amountMock = $this->createMock(\
Magento\Framework\Pricing\
Amount\Base::class);
36 $this->factory = new \Magento\Framework\Pricing\Amount\AmountFactory($this->objectManagerMock);
44 $this->objectManagerMock->expects($this->once())
47 $this->equalTo(\
Magento\Framework\Pricing\
Amount\AmountInterface::class),
50 'amount' =>
'this-is-float-amount',
51 'adjustmentAmounts' => [
'this-is-array-of-adjustments'],
55 ->will($this->returnValue($this->amountMock));
58 $this->factory->create(
'this-is-float-amount', [
'this-is-array-of-adjustments'])
69 $this->objectManagerMock->expects($this->once())
72 $this->equalTo(\
Magento\Framework\Pricing\
Amount\AmountInterface::class),
75 'amount' =>
'this-is-float-amount',
76 'adjustmentAmounts' => [
'this-is-array-of-adjustments'],
80 ->will($this->returnValue(
new \stdClass()));
83 $this->factory->create(
'this-is-float-amount', [
'this-is-array-of-adjustments'])