File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/code/Magento/Shipping
Controller/Adminhtml/Order/Shipment
Test/Unit/Controller/Adminhtml/Order/Shipment Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function execute()
53
53
{
54
54
$ this ->shipmentLoader ->setOrderId ($ this ->getRequest ()->getParam ('order_id ' ));
55
55
$ this ->shipmentLoader ->setShipmentId ($ this ->getRequest ()->getParam ('shipment_id ' ));
56
- $ this ->shipmentLoader ->setShipment ($ this ->shipmentProvider ->getShipment ());
56
+ $ this ->shipmentLoader ->setShipment ($ this ->shipmentProvider ->getShipmentData ());
57
57
$ this ->shipmentLoader ->setTracking ($ this ->getRequest ()->getParam ('tracking ' ));
58
58
$ shipment = $ this ->shipmentLoader ->load ();
59
59
if ($ shipment ) {
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ protected function setUp()
135
135
);
136
136
$ this ->shipmentProviderMock = $ this ->getMockBuilder (\Magento \Shipping \Model \ShipmentProviderInterface::class)
137
137
->disableOriginalConstructor ()
138
- ->setMethods (['getShipment ' ])
138
+ ->setMethods (['getShipmentData ' ])
139
139
->getMockForAbstractClass ();
140
140
$ this ->actionFlag = $ this ->createPartialMock (\Magento \Framework \App \ActionFlag::class, ['get ' ]);
141
141
$ this ->helper = $ this ->createPartialMock (\Magento \Backend \Helper \Data::class, ['getUrl ' ]);
@@ -270,7 +270,7 @@ public function testExecute()
270
270
->with ('menu ' )
271
271
->will ($ this ->returnValue ($ menuBlock ));
272
272
$ this ->shipmentProviderMock ->expects ($ this ->once ())
273
- ->method ('getShipment ' )
273
+ ->method ('getShipmentData ' )
274
274
->willReturn ($ shipmentData );
275
275
276
276
$ this ->assertNull ($ this ->newAction ->execute ());
You can’t perform that action at this time.
0 commit comments