Skip to content

Commit b794302

Browse files
committed
MAGETWO-56431: Shipment creation through API change order status. Back port for 2.1.x
1 parent 94f59b4 commit b794302

File tree

1 file changed

+2
-3
lines changed
  • app/code/Magento/Shipping/Test/Unit/Controller/Adminhtml/Order/Shipment

1 file changed

+2
-3
lines changed

app/code/Magento/Shipping/Test/Unit/Controller/Adminhtml/Order/Shipment/SaveTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,12 @@ public function testExecute($formKeyIsValid, $isPost)
346346
->method('create')
347347
->with(\Magento\Framework\DB\Transaction::class)
348348
->will($this->returnValue($saveTransaction));
349-
$this->objectManager->expects($this->exactly(2))
349+
$this->objectManager->expects($this->exactly(1))
350350
->method('get')
351351
->withConsecutive(
352-
[\Magento\Sales\Model\Order\Shipment\ShipmentValidatorInterface::class],
353352
[\Magento\Backend\Model\Session::class]
354353
)
355-
->willReturnOnConsecutiveCalls($this->shipmentValidatorMock, $this->session);
354+
->willReturnOnConsecutiveCalls($this->session);
356355
$path = 'sales/order/view';
357356
$arguments = ['order_id' => $orderId];
358357
$shipment->expects($this->once())

0 commit comments

Comments
 (0)