Skip to content

Commit ac31ab9

Browse files
author
Mike Weis
committed
MAGETWO-55117: ShippingMethodManagement::estimateByAddressId set not full address details
- fix static test failure
1 parent 49386f2 commit ac31ab9

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

app/code/Magento/Quote/Test/Unit/Model/ShippingMethodManagementTest.php

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,26 +88,15 @@ protected function setUp()
8888
$this->objectManager = new ObjectManager($this);
8989
$this->quoteRepository = $this->getMock(\Magento\Quote\Api\CartRepositoryInterface::class);
9090
$this->addressRepository = $this->getMock(\Magento\Customer\Api\AddressRepositoryInterface::class);
91-
92-
$this->methodDataFactoryMock = $this->getMock(
93-
\Magento\Quote\Api\Data\ShippingMethodInterfaceFactory::class,
94-
[
95-
'create'
96-
],
97-
[],
98-
'',
99-
false
100-
);
101-
102-
$this->addressFactory = $this->getMock(
103-
\Magento\Customer\Api\Data\AddressInterfaceFactory::class,
104-
['create'],
105-
[],
106-
'',
107-
false
108-
);
10991

110-
$this->dataProcessor = $this->getMock(\Magento\Framework\Reflection\DataObjectProcessor::class, [], [], '', false);
92+
$className = \Magento\Quote\Api\Data\ShippingMethodInterfaceFactory::class;
93+
$this->methodDataFactoryMock = $this->getMock($className, ['create'], [], '', false);
94+
95+
$className = \Magento\Customer\Api\Data\AddressInterfaceFactory::class;
96+
$this->addressFactory = $this->getMock($className, ['create'], [], '', false);
97+
98+
$className = \Magento\Framework\Reflection\DataObjectProcessor::class;
99+
$this->dataProcessor = $this->getMock($className, [], [], '', false);
111100

112101
$this->storeMock = $this->getMock(\Magento\Store\Model\Store::class, [], [], '', false);
113102
$this->quote = $this->getMockBuilder(Quote::class)

0 commit comments

Comments
 (0)