@@ -123,29 +123,19 @@ public function testAddTrackingNumbersToShipment(array $info): void
123123 ->getMock ();
124124 $ shipmentMock ->expects (static ::once ())->method ('getOrder ' )->willReturn ($ order );
125125
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 )
129127 ->willReturn ($ this ->getCarrierMock ());
130128
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 )
137131 ->willReturn ($ this ->getResponseMock ($ info ));
138132
139- $ this ->labelsFactory ->expects (static ::once ())
140- ->method ('create ' )
141- ->willReturn ($ labelsMock );
133+ $ this ->labelsFactory ->expects (static ::once ())->method ('create ' )->willReturn ($ labelsMock );
142134
143- $ this ->filesystem ->expects (static ::once ())
144- ->method ('getDirectoryWrite ' )
135+ $ this ->filesystem ->expects (static ::once ())->method ('getDirectoryWrite ' )
145136 ->willReturn ($ this ->getMockForAbstractClass (WriteInterface::class));
146137
147- $ this ->scopeConfig ->expects (static ::once ())
148- ->method ('getValue ' )
138+ $ this ->scopeConfig ->expects (static ::once ())->method ('getValue ' )
149139 ->with (
150140 'carriers/ ' . self ::CARRIER_CODE . '/title ' ,
151141 ScopeInterface::SCOPE_STORE ,
@@ -204,9 +194,7 @@ public function testAddTrackingNumbersToShipment(array $info): void
204194 }
205195 });
206196
207- $ this ->trackFactory ->expects (static ::any ())
208- ->method ('create ' )
209- ->willReturn ($ trackMock );
197+ $ this ->trackFactory ->expects (static ::any ())->method ('create ' )->willReturn ($ trackMock );
210198
211199 /**
212200 * @var $requestMock \Magento\Framework\App\RequestInterface|MockObject
0 commit comments