@@ -123,29 +123,19 @@ public function testAddTrackingNumbersToShipment(array $info): void
123
123
->getMock ();
124
124
$ shipmentMock ->expects (static ::once ())->method ('getOrder ' )->willReturn ($ order );
125
125
126
- $ this ->carrierFactory ->expects (static ::once ())
127
- ->method ('create ' )
128
- ->with (self ::CARRIER_CODE )
126
+ $ this ->carrierFactory ->expects (static ::once ())->method ('create ' )->with (self ::CARRIER_CODE )
129
127
->willReturn ($ this ->getCarrierMock ());
130
128
131
- $ labelsMock = $ this ->getMockBuilder (Labels::class)
132
- ->disableOriginalConstructor ()
133
- ->getMock ();
134
- $ labelsMock ->expects (static ::once ())
135
- ->method ('requestToShipment ' )
136
- ->with ($ shipmentMock )
129
+ $ labelsMock = $ this ->getMockBuilder (Labels::class)->disableOriginalConstructor ()->getMock ();
130
+ $ labelsMock ->expects (static ::once ())->method ('requestToShipment ' )->with ($ shipmentMock )
137
131
->willReturn ($ this ->getResponseMock ($ info ));
138
132
139
- $ this ->labelsFactory ->expects (static ::once ())
140
- ->method ('create ' )
141
- ->willReturn ($ labelsMock );
133
+ $ this ->labelsFactory ->expects (static ::once ())->method ('create ' )->willReturn ($ labelsMock );
142
134
143
- $ this ->filesystem ->expects (static ::once ())
144
- ->method ('getDirectoryWrite ' )
135
+ $ this ->filesystem ->expects (static ::once ())->method ('getDirectoryWrite ' )
145
136
->willReturn ($ this ->getMockForAbstractClass (WriteInterface::class));
146
137
147
- $ this ->scopeConfig ->expects (static ::once ())
148
- ->method ('getValue ' )
138
+ $ this ->scopeConfig ->expects (static ::once ())->method ('getValue ' )
149
139
->with (
150
140
'carriers/ ' . self ::CARRIER_CODE . '/title ' ,
151
141
ScopeInterface::SCOPE_STORE ,
@@ -204,9 +194,7 @@ public function testAddTrackingNumbersToShipment(array $info): void
204
194
}
205
195
});
206
196
207
- $ this ->trackFactory ->expects (static ::any ())
208
- ->method ('create ' )
209
- ->willReturn ($ trackMock );
197
+ $ this ->trackFactory ->expects (static ::any ())->method ('create ' )->willReturn ($ trackMock );
210
198
211
199
/**
212
200
* @var $requestMock \Magento\Framework\App\RequestInterface|MockObject
0 commit comments