@@ -88,26 +88,15 @@ protected function setUp()
88
88
$ this ->objectManager = new ObjectManager ($ this );
89
89
$ this ->quoteRepository = $ this ->getMock (\Magento \Quote \Api \CartRepositoryInterface::class);
90
90
$ 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
- );
109
91
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 );
111
100
112
101
$ this ->storeMock = $ this ->getMock (\Magento \Store \Model \Store::class, [], [], '' , false );
113
102
$ this ->quote = $ this ->getMockBuilder (Quote::class)
0 commit comments