File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
app/code/Magento/Shipping/Test/Unit/Controller/Adminhtml/Order/Shipment Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -346,13 +346,12 @@ public function testExecute($formKeyIsValid, $isPost)
346
346
->method ('create ' )
347
347
->with (\Magento \Framework \DB \Transaction::class)
348
348
->will ($ this ->returnValue ($ saveTransaction ));
349
- $ this ->objectManager ->expects ($ this ->exactly (2 ))
349
+ $ this ->objectManager ->expects ($ this ->exactly (1 ))
350
350
->method ('get ' )
351
351
->withConsecutive (
352
- [\Magento \Sales \Model \Order \Shipment \ShipmentValidatorInterface::class],
353
352
[\Magento \Backend \Model \Session::class]
354
353
)
355
- ->willReturnOnConsecutiveCalls ($ this ->shipmentValidatorMock , $ this -> session );
354
+ ->willReturnOnConsecutiveCalls ($ this ->session );
356
355
$ path = 'sales/order/view ' ;
357
356
$ arguments = ['order_id ' => $ orderId ];
358
357
$ shipment ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments