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()
5353 {
5454 $ this ->shipmentLoader ->setOrderId ($ this ->getRequest ()->getParam ('order_id ' ));
5555 $ this ->shipmentLoader ->setShipmentId ($ this ->getRequest ()->getParam ('shipment_id ' ));
56- $ this ->shipmentLoader ->setShipment ($ this ->shipmentProvider ->getShipment ());
56+ $ this ->shipmentLoader ->setShipment ($ this ->shipmentProvider ->getShipmentData ());
5757 $ this ->shipmentLoader ->setTracking ($ this ->getRequest ()->getParam ('tracking ' ));
5858 $ shipment = $ this ->shipmentLoader ->load ();
5959 if ($ shipment ) {
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ protected function setUp()
135135 );
136136 $ this ->shipmentProviderMock = $ this ->getMockBuilder (\Magento \Shipping \Model \ShipmentProviderInterface::class)
137137 ->disableOriginalConstructor ()
138- ->setMethods (['getShipment ' ])
138+ ->setMethods (['getShipmentData ' ])
139139 ->getMockForAbstractClass ();
140140 $ this ->actionFlag = $ this ->createPartialMock (\Magento \Framework \App \ActionFlag::class, ['get ' ]);
141141 $ this ->helper = $ this ->createPartialMock (\Magento \Backend \Helper \Data::class, ['getUrl ' ]);
@@ -270,7 +270,7 @@ public function testExecute()
270270 ->with ('menu ' )
271271 ->will ($ this ->returnValue ($ menuBlock ));
272272 $ this ->shipmentProviderMock ->expects ($ this ->once ())
273- ->method ('getShipment ' )
273+ ->method ('getShipmentData ' )
274274 ->willReturn ($ shipmentData );
275275
276276 $ this ->assertNull ($ this ->newAction ->execute ());
You can’t perform that action at this time.
0 commit comments